mount

bastilla 2020-10-08T10:20:38.004900Z

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!

bastilla 2020-10-08T10:32:28.005Z

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

zilti 2020-10-08T11:47:55.005200Z

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

bastilla 2020-10-08T17:23:03.005400Z

@zilti Thanks! And I

bastilla 2020-10-08T17:24:33.005600Z

(ops) Nevermind. Yes, it works.