mount

2016-01-11T20:31:02.000236Z

hmmm... "ANALYSIS ERROR: Referred var mount.core/defstate does not exist on file null, line null, column null" What would cause this to happen?

2016-01-11T20:32:23.000237Z

Those nulls are interesting...

2016-01-11T21:12:05.000238Z

Could be this: https://github.com/bhauman/lein-figwheel/issues/308

2016-01-11T21:15:58.000240Z

Ahh... I'm in ClojureScript so (:require-macros [mount.core :refer [defstate]])

tolitius 2016-01-11T21:22:35.000241Z

@fappy: yea, that would do it :simple_smile:

tolitius 2016-01-11T21:23:11.000242Z

check this out, it might be helpful: https://github.com/tolitius/mount/blob/master/doc/clojurescript.md#managing-state-in-clojurescript

2016-01-11T22:16:55.000244Z

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

2016-01-11T22:23:50.000246Z

@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