Fork me on GitHub
#mount
<
2020-11-12
>
defa06:11:53

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 K12:11:53

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

defa12:11:34

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