vec states for watchers
This commit is contained in:
parent
a0f10407ee
commit
3218f8afaf
1 changed files with 2 additions and 1 deletions
|
|
@ -312,7 +312,8 @@
|
||||||
|
|
||||||
(add-watcher [_ ks state]
|
(add-watcher [_ ks state]
|
||||||
(doseq [k ks]
|
(doseq [k ks]
|
||||||
(swap! watchers update k #(conj % state))))
|
(swap! watchers update k (fn [v]
|
||||||
|
(-> (conj v state) vec)))))
|
||||||
|
|
||||||
(on-change [_ ks]
|
(on-change [_ ks]
|
||||||
(doseq [k ks]
|
(doseq [k ks]
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue