mount

defa 2020-11-12T06:56:53.010100Z

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.

Jan K 2020-11-12T12:19:53.013100Z

@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.

defa 2020-11-12T12:20:34.013500Z

Thanks, @jkr.sw, I will try that.