mirror of
https://github.com/status-im/re-natal.git
synced 2025-01-15 07:04:23 +00:00
a1d875ffbd
- do not use AppRegistry.registerRunnable for mounting component to id 1, this prevents warning to be shown in yellow box. Instead use AppRegistry.registerComponent - shim some document functions so that enabled figwheel heads-up-display works without errors and logs warnings to console (that will be shown on screen in yellow box) - figwheel splash component now loads real app and renders root component. That has to be done to avoid using AppRegistry.registerRunnable to render real app
17 lines
487 B
Clojure
17 lines
487 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 true
|
|
:jsload-callback #(swap! cnt inc))
|
|
|
|
(core/init) |