This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2020-10-08
Channels
- # announcements (10)
- # babashka (4)
- # beginners (98)
- # cider (47)
- # clara (6)
- # clj-kondo (16)
- # clojure (54)
- # clojure-australia (3)
- # clojure-berlin (3)
- # clojure-czech (2)
- # clojure-europe (77)
- # clojure-nl (4)
- # clojure-uk (12)
- # clojuredesign-podcast (6)
- # clojurescript (10)
- # conjure (56)
- # cursive (3)
- # data-science (6)
- # datascript (8)
- # datomic (213)
- # depstar (5)
- # events (1)
- # figwheel-main (2)
- # fulcro (23)
- # graalvm (2)
- # jobs (3)
- # london-clojurians (1)
- # malli (30)
- # meander (15)
- # midje (1)
- # mount (5)
- # off-topic (18)
- # re-frame (4)
- # reitit (15)
- # remote-jobs (1)
- # shadow-cljs (23)
- # spacemacs (10)
- # specter (1)
- # tools-deps (88)
- # vim (16)
- # xtdb (1)
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.
@U2APCNHCN Thanks! And I