Fork me on GitHub
#mount
<
2018-08-30
>
dm306:08:09

you can’t wait in javascript, only attach callbacks

aaron5117:08:08

@dm3 So if :start returns a Promise, then every time you use it (including in :stop) you have to call .then on it?

richiardiandrea21:08:47

I have a question too, if I have defstate like the following:

(defstate ^{:doc "The system config"}
  map
  :start (s/assert* :my/config (read-config)))
in ClojureScript, is the :start method called (a therefore throw) when I require the namespace it lives in?