tolitius / mount

managing Clojure and ClojureScript app state since (reset)
Eclipse Public License 1.0
1.22k stars 88 forks source link

Mount Reports Removed defstates #42

Closed paulrd closed 7 years ago

paulrd commented 8 years ago

I noticed that if I delete a defstate and then do a clojure.tools.namespace.repl/refresh, calling (mount/start) still reports that the old defstate is being started even though it is not. I have to restart the repl to get (mount/start) to report what is actually happening.

tolitius commented 8 years ago

@paulrd ah.. good point. might need to check (i.e. (when (resolve 'state) ... )) the state existence on lifecycle (start/stop/resume/suspend) events. The tricky part is to make it work consistently in ClojureScript :) will give it more thought, thanks for finding it.

tolitius commented 8 years ago

@paulrd I'd still like to keep it open until I can test the need for it in ClojureScript, but let me know if 0.1.9-SNAPSHOT fixes it for you.

tolitius commented 8 years ago

here are some docs about cleaning up deleted states

tolitius commented 7 years ago

closing this. will reopen in case there are problems reporting cleaned states on the ClojureScript side.