From 76cae93f81f6deffe0782f7c5a620b41a0c3d487 Mon Sep 17 00:00:00 2001 From: Andrea Richiardi Date: Tue, 5 Jul 2016 10:53:39 -0700 Subject: [PATCH] Add note on ^{:on-reload :noop} According to the Slack conversation with @tolitius --- README.md | 2 ++ 1 file changed, 2 insertions(+) diff --git a/README.md b/README.md index 7661421..12bbc13 100644 --- a/README.md +++ b/README.md @@ -481,6 +481,8 @@ When a running state needs to be just "stopped" on reload, set `:on-reload` to ` Again, by default, if no `:on-reload` meta is added, internally it would be set to `:restart`, in which case a running state will be restarted on a redef / a namespace reload. +Note that `^{:on-reload :noop}` will disable stopping or starting the state on namespace recompilation but it will still obey `(mount/start)` / `(mount/stop)` calls. This means that if any of the namespaces with `(mount/start)` / `(mount/stop)` calls are reloaded or these calls are explicitely executed (i.e. somewhere in the `dev` namespace or in an `:after` clause), the state's start/stop functions will still be called. + ## Cleaning up Deleted States Mount will detect when a state was renamed/deleted from a namespace, and will do two things: