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
|
||||
|
||||
;; 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.
|
||||
(defonce do-timer (js/setInterval dispatch-timer-event 1000))
|
||||
|
||||
|
|
Loading…
Reference in New Issue