mirror of
https://github.com/metosin/reitit.git
synced 2025-12-17 08:21:11 +00:00
Update easy.cljs
This commit is contained in:
parent
ba93e3f3b8
commit
057fae9e46
1 changed files with 6 additions and 4 deletions
|
|
@ -6,13 +6,15 @@
|
||||||
|
|
||||||
(defonce history (atom nil))
|
(defonce history (atom nil))
|
||||||
|
|
||||||
;; Doc-strings from reitit.frontend.history
|
;; Doc-strings from reitit.frontend.history remember to update both!
|
||||||
;; remember to update both!
|
;; Differences:
|
||||||
|
;; This one automatically removes previous event listeners.
|
||||||
|
|
||||||
(defn start!
|
(defn start!
|
||||||
"This registers event listeners on HTML5 history and hashchange events.
|
"This registers event listeners on HTML5 history and hashchange events.
|
||||||
When using with development workflow like Figwheel, rememeber to
|
|
||||||
remove listeners using stop! call before calling start! again.
|
Automatically removes previous event listeners so it is safe to call this repeatedly, for example when using
|
||||||
|
Figwheel or similar development workflow.
|
||||||
|
|
||||||
Parameters:
|
Parameters:
|
||||||
- router The Reitit router.
|
- router The Reitit router.
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue