mirror of https://github.com/status-im/reagent.git
Don't call on-dispose in non-reactive deref for now
This commit is contained in:
parent
f940ac3f38
commit
5a23bcaad5
|
@ -438,10 +438,7 @@
|
|||
(set! state newstate)
|
||||
(when (and (some? watches)
|
||||
(not= oldstate newstate))
|
||||
(-notify-watches this oldstate newstate))))
|
||||
(when (and (some? on-dispose)
|
||||
(nil? watches))
|
||||
(on-dispose state)))
|
||||
(-notify-watches this oldstate newstate)))))
|
||||
(do
|
||||
(notify-deref-watcher! this)
|
||||
(when-not (== dirtyness clean)
|
||||
|
|
Loading…
Reference in New Issue