Add note on ^{:on-reload :noop}
According to the Slack conversation with @tolitius
This commit is contained in:
parent
690f9fc6c8
commit
35655ed752
1 changed files with 2 additions and 0 deletions
|
|
@ -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:
|
||||
|
|
|
|||
Loading…
Reference in a new issue