mirror of https://github.com/status-im/reagent.git
Simplify mount-count
This commit is contained in:
parent
7d79637de6
commit
36c48c0ea2
|
@ -8,10 +8,10 @@
|
||||||
|
|
||||||
;;; Update batching
|
;;; Update batching
|
||||||
|
|
||||||
(defonce mount-count #js {:count 0})
|
(defonce mount-count 0)
|
||||||
|
|
||||||
(defn next-mount-count []
|
(defn next-mount-count []
|
||||||
(.! mount-count :count (inc (.' mount-count :count))))
|
(set! mount-count (inc mount-count)))
|
||||||
|
|
||||||
(defn fake-raf [f]
|
(defn fake-raf [f]
|
||||||
(js/setTimeout f 16))
|
(js/setTimeout f 16))
|
||||||
|
|
Loading…
Reference in New Issue