mount

Gleb Posobin 2020-06-04T03:55:53.023Z

I am using mount with cljs, and when I have a namespace where I need defstate, I use (ns foo.bar (:require-macros [mount.core :refer [defstate]])) and use it as (defstate x :start 10), as in mount's examples, but then I get an error saying that mount is not defined. When I additionally (:require [mount.core]) the error goes away, but mount's examples for cljs don't include that. Is this intended? Just to be clear, that defstate is the only line in the namespaces.