#22: dissoc from running states on recompile
This commit is contained in:
parent
40cbf173ee
commit
7e2adce991
1 changed files with 2 additions and 1 deletions
|
|
@ -50,7 +50,8 @@
|
|||
it is meant to be called by defstate before defining a new state"
|
||||
[state]
|
||||
(when-let [stop (@running state)]
|
||||
(stop)))
|
||||
(stop)
|
||||
(swap! running dissoc state)))
|
||||
|
||||
#?(:clj
|
||||
(defn current-state [state]
|
||||
|
|
|
|||
Loading…
Reference in a new issue