mirror of
https://github.com/status-im/re-natal.git
synced 2025-01-12 13:44:07 +00:00
dfa5cdece8
- using latest available version of lein-figwheel [0.5.0-6] - figwheel now 'thinks' it is running in node.js environment (thanks @artemyarulin for hints) - figwheel :heads-up-display is now disabled. Compilation warnings are still logged and shown in yellow box on screen. (thanks @seantempesta for hint)
17 lines
488 B
Clojure
17 lines
488 B
Clojure
(ns ^:figwheel-no-load env.$PLATFORM$.main
|
|
(:require [reagent.core :as r]
|
|
[$PROJECT_NAME_HYPHENATED$.$PLATFORM$.core :as core]
|
|
[figwheel.client :as figwheel :include-macros true]))
|
|
|
|
(enable-console-print!)
|
|
|
|
(def cnt (r/atom 0))
|
|
(defn reloader [] @cnt [core/app-root])
|
|
(def root-el (r/as-element [reloader]))
|
|
|
|
(figwheel/watch-and-reload
|
|
:websocket-url "ws://$DEV_HOST$:3449/figwheel-ws"
|
|
:heads-up-display false
|
|
:jsload-callback #(swap! cnt inc))
|
|
|
|
(core/init) |