Using mount in a REPL and having a simple dependency between two states config -> server
... when reloading the namespace config
is defined in, I'd like to restart the server
state automatically. But from the logs only config
is stoppend and started when reloading the ns. From reading the docs this is not clear to me.
@defa If you reload a single NS, only states there will be restarted. But you can use clojure.tools.namespace.repl/refresh
, which should reload all affected namespaces and then mount will restart all the states in those.
Thanks, @jkr.sw, I will try that.