mirror of
https://github.com/metosin/reitit.git
synced 2025-12-18 17:01:11 +00:00
Don't options using default values
This commit is contained in:
parent
d90b7cff04
commit
7e9ea8f905
2 changed files with 2 additions and 4 deletions
|
|
@ -84,8 +84,7 @@
|
||||||
(swap! match (fn [old-match]
|
(swap! match (fn [old-match]
|
||||||
(if new-match
|
(if new-match
|
||||||
(assoc new-match :controllers (rfc/apply-controllers (:controllers old-match) new-match))))))
|
(assoc new-match :controllers (rfc/apply-controllers (:controllers old-match) new-match))))))
|
||||||
{:use-fragment true
|
{:use-fragment true})
|
||||||
:path-prefix "/"})
|
|
||||||
(r/render [current-page] (.getElementById js/document "app")))
|
(r/render [current-page] (.getElementById js/document "app")))
|
||||||
|
|
||||||
(init!)
|
(init!)
|
||||||
|
|
|
||||||
|
|
@ -62,8 +62,7 @@
|
||||||
(defn init! []
|
(defn init! []
|
||||||
(rfe/start! routes
|
(rfe/start! routes
|
||||||
(fn [m] (reset! match m))
|
(fn [m] (reset! match m))
|
||||||
{:use-fragment true
|
{:use-fragment true})
|
||||||
:path-prefix "/"})
|
|
||||||
(r/render [current-page] (.getElementById js/document "app")))
|
(r/render [current-page] (.getElementById js/document "app")))
|
||||||
|
|
||||||
(init!)
|
(init!)
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue