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: