re-natal/resources/cljs-om-next/main_dev.cljs

17 lines
560 B
Clojure

(ns ^:figwheel-no-load env.$PLATFORM$.main
(:require [om.next :as om]
[$PROJECT_NAME_HYPHENATED$.$PLATFORM$.core :as core]
[$PROJECT_NAME_HYPHENATED$.state :as state]
[figwheel.client :as figwheel :include-macros true]))
(enable-console-print!)
(figwheel/watch-and-reload
:websocket-url "ws://localhost:3449/figwheel-ws"
:heads-up-display false
:jsload-callback #(om/add-root! state/reconciler core/AppRoot 1))
(core/init)
;; Do not delete, root-el is used by the figwheel-bridge.js
(def root-el (core/app-root))