Deref mount state var in :stop function in readme

This commit is contained in:
Martin Klepsch 2022-11-04 14:42:58 +01:00 committed by GitHub
parent b77f504cfd
commit 44df0d7b06
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

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