Add note on ^{:on-reload :noop}

According to the Slack conversation with @tolitius
This commit is contained in:
Andrea Richiardi 2016-07-05 10:53:39 -07:00 committed by GitHub
parent 690f9fc6c8
commit 35655ed752

View file

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