function | since v0.0-3255 | Edit |
(with-core-cljs)
(with-core-cljs opts)
(with-core-cljs opts body)
(with-core-cljs state opts body)
Ensure that core.cljs has been loaded.
(defn with-core-cljs
([]
(comp/with-core-cljs
(when-let [state (ana-api/current-state)]
(:options @state))))
([opts] (with-core-cljs opts (fn [])))
([opts body]
(with-core-cljs (or (ana-api/current-state) (ana-api/empty-state opts)) opts body))
([state opts body]
(ana-api/with-state state
(binding [ana/*cljs-warning-handlers* (:warning-handlers opts ana/*cljs-warning-handlers*)]
(comp/with-core-cljs opts body)))))