2015-11-29 21:10:01 +00:00
|
|
|
(ns ^:figwheel-no-load env.$PLATFORM$.main
|
2016-01-09 22:35:40 +00:00
|
|
|
(:require [reagent.core :as r]
|
|
|
|
[$PROJECT_NAME_HYPHENATED$.$PLATFORM$.core :as core]
|
2015-12-06 19:22:53 +00:00
|
|
|
[figwheel.client :as figwheel :include-macros true]))
|
2015-11-27 22:57:14 +00:00
|
|
|
|
|
|
|
(enable-console-print!)
|
|
|
|
|
2016-01-09 22:35:40 +00:00
|
|
|
(def cnt (r/atom 0))
|
|
|
|
(defn reloader [] @cnt [core/app-root])
|
|
|
|
(def root-el (r/as-element [reloader]))
|
|
|
|
|
2015-12-06 19:22:53 +00:00
|
|
|
(figwheel/watch-and-reload
|
|
|
|
:websocket-url "ws://$DEV_HOST$:3449/figwheel-ws"
|
2016-03-20 10:25:45 +00:00
|
|
|
:heads-up-display false
|
2016-01-09 22:35:40 +00:00
|
|
|
:jsload-callback #(swap! cnt inc))
|
2015-11-27 22:57:14 +00:00
|
|
|
|
2016-01-09 22:35:40 +00:00
|
|
|
(core/init)
|