add comment about usage of root-el var
This commit is contained in:
parent
f24bbe7470
commit
761daa6593
|
@ -13,4 +13,5 @@
|
||||||
|
|
||||||
(core/init)
|
(core/init)
|
||||||
|
|
||||||
|
;; Do not delete, root-el is used by the figwheel-bridge.js
|
||||||
(def root-el (core/app-root))
|
(def root-el (core/app-root))
|
|
@ -7,6 +7,8 @@
|
||||||
|
|
||||||
(def cnt (r/atom 0))
|
(def cnt (r/atom 0))
|
||||||
(defn reloader [] @cnt [core/app-root])
|
(defn reloader [] @cnt [core/app-root])
|
||||||
|
|
||||||
|
;; Do not delete, root-el is used by the figwheel-bridge.js
|
||||||
(def root-el (r/as-element [reloader]))
|
(def root-el (r/as-element [reloader]))
|
||||||
|
|
||||||
(figwheel/watch-and-reload
|
(figwheel/watch-and-reload
|
||||||
|
|
|
@ -8,6 +8,8 @@
|
||||||
|
|
||||||
(def cnt (r/atom 0))
|
(def cnt (r/atom 0))
|
||||||
(defn reloader [] @cnt [core/app-root])
|
(defn reloader [] @cnt [core/app-root])
|
||||||
|
|
||||||
|
;; Do not delete, root-el is used by the figwheel-bridge.js
|
||||||
(def root-el (r/as-element [reloader]))
|
(def root-el (r/as-element [reloader]))
|
||||||
|
|
||||||
(defn force-reload! []
|
(defn force-reload! []
|
||||||
|
|
|
@ -12,4 +12,6 @@
|
||||||
|
|
||||||
(core/init)
|
(core/init)
|
||||||
|
|
||||||
|
|
||||||
|
;; Do not delete, root-el is used by the figwheel-bridge.js
|
||||||
(def root-el (core/root-component-factory))
|
(def root-el (core/root-component-factory))
|
||||||
|
|
Loading…
Reference in New Issue