Deref mount state var in :stop function in readme
This commit is contained in:
parent
b77f504cfd
commit
44df0d7b06
1 changed files with 1 additions and 1 deletions
|
|
@ -97,7 +97,7 @@ In case this state needs to be cleaned / destroyed between reloads, there is als
|
|||
|
||||
```clojure
|
||||
(defstate conn :start (create-conn)
|
||||
:stop (disconnect conn))
|
||||
:stop (disconnect @conn))
|
||||
```
|
||||
|
||||
That is pretty much it. But wait, there is more.. this state is _a top level being_, which means it can be simply
|
||||
|
|
|
|||
Loading…
Reference in a new issue