mirror of https://github.com/status-im/reagent.git
Allow auto-running reaction to be watched
This commit is contained in:
parent
9d0d0680ec
commit
81dfa7c682
|
@ -205,7 +205,8 @@
|
|||
|
||||
(-remove-watch [this k]
|
||||
(set! watches (dissoc watches k))
|
||||
(when (empty? watches)
|
||||
(when (and (empty? watches)
|
||||
(not auto-run))
|
||||
(dispose! this)))
|
||||
|
||||
IReset
|
||||
|
|
Loading…
Reference in New Issue