mirror of
https://github.com/status-im/re-frame.git
synced 2025-02-22 23:08:20 +00:00
Fix my fix 'only one instance'
This commit is contained in:
parent
2313c9d509
commit
2ce934635c
@ -13,7 +13,7 @@
|
|||||||
(rf/dispatch [:timer now]))) ;; <-- dispatch used
|
(rf/dispatch [:timer now]))) ;; <-- dispatch used
|
||||||
|
|
||||||
;; Call the dispatching function every second.
|
;; Call the dispatching function every second.
|
||||||
;; `defonce` is like `def` but it ensures only instance one is ever
|
;; `defonce` is like `def` but it ensures only one instance is ever
|
||||||
;; created in the face of figwheel hot-reloading of this file.
|
;; created in the face of figwheel hot-reloading of this file.
|
||||||
(defonce do-timer (js/setInterval dispatch-timer-event 1000))
|
(defonce do-timer (js/setInterval dispatch-timer-event 1000))
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user