Fork me on GitHub

Hi there. Is there a way to automatically re-load a state (defstate) once the underlying source changes? I have

(defstate wkr-setting
  :start (load-config :file (wkr-setting-filepath)))
I saw there is "ChangeListener". Might that the way to do such things in mount? (Apologies, I have a hard time understanding test files, where this isn't mentioned, btw.) 1000 Thanks, if you happen to have such a snippet code available, or hints!


I just read (github) it should be easily done via (mount/stop) and (mount/start). Nevermind. I give it a shot.


Mount will automatically reload the namespace as soon as you re-evaluate / send to REPL the source.


(ops) Nevermind. Yes, it works.