Does anyone know if you can set ^:dynamic
on a mount defstate
? Iām trying to use binding
on a defstate to prevent accessing my db state directly when I have a transaction going with jdbc/with-db-transaction
@viktor.holmberg Yes, you can set ^:dynamic on defstate.
(mount/defstate ^:dynamic *http-server*
:start (start (:web-server conf/*config*))
:stop (stop http-server))
Sick!! Thanks a lot for your help š