hmmm... "ANALYSIS ERROR: Referred var mount.core/defstate does not exist on file null, line null, column null" What would cause this to happen?
Those nulls are interesting...
Could be this: https://github.com/bhauman/lein-figwheel/issues/308
Ahh... I'm in ClojureScript so (:require-macros [mount.core :refer [defstate]])
@fappy: yea, that would do it :simple_smile:
check this out, it might be helpful: https://github.com/tolitius/mount/blob/master/doc/clojurescript.md#managing-state-in-clojurescript
@tolitius: Hmm... ANALYSIS ERROR: Unable to resolve var: cleanup-if-dirty in this context at line 26
where line 26 in my file says (defstate config :start (load))
@tolitius: cleanup-if-dirty
is a private defn-
... Making it public and and :refer
-ing it allows the cljs macro for defstate
to work for me