mount

Viktor 2020-05-11T13:19:31.011900Z

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

mike_ananev 2020-05-11T14:18:41.012900Z

@viktor.holmberg Yes, you can set ^:dynamic on defstate.

(mount/defstate ^:dynamic *http-server*
  :start (start (:web-server conf/*config*))
  :stop (stop http-server))

Viktor 2020-05-11T14:33:26.013Z

Sick!! Thanks a lot for your help šŸ™