From 761daa6593cbddd1e28a88a93e6ee862f98b274d Mon Sep 17 00:00:00 2001 From: Artur Girenko Date: Tue, 30 May 2017 20:09:51 +0200 Subject: [PATCH] add comment about usage of root-el var --- resources/cljs-om-next/main_dev.cljs | 1 + resources/cljs-reagent/main_dev.cljs | 2 ++ resources/cljs-reagent6/main_dev.cljs | 2 ++ resources/cljs-rum/main_dev.cljs | 2 ++ 4 files changed, 7 insertions(+) diff --git a/resources/cljs-om-next/main_dev.cljs b/resources/cljs-om-next/main_dev.cljs index 83b2f98..ed95294 100644 --- a/resources/cljs-om-next/main_dev.cljs +++ b/resources/cljs-om-next/main_dev.cljs @@ -13,4 +13,5 @@ (core/init) +;; Do not delete, root-el is used by the figwheel-bridge.js (def root-el (core/app-root)) \ No newline at end of file diff --git a/resources/cljs-reagent/main_dev.cljs b/resources/cljs-reagent/main_dev.cljs index 00bedb7..e73ac95 100644 --- a/resources/cljs-reagent/main_dev.cljs +++ b/resources/cljs-reagent/main_dev.cljs @@ -7,6 +7,8 @@ (def cnt (r/atom 0)) (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])) (figwheel/watch-and-reload diff --git a/resources/cljs-reagent6/main_dev.cljs b/resources/cljs-reagent6/main_dev.cljs index 940e363..5fa2a56 100644 --- a/resources/cljs-reagent6/main_dev.cljs +++ b/resources/cljs-reagent6/main_dev.cljs @@ -8,6 +8,8 @@ (def cnt (r/atom 0)) (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])) (defn force-reload! [] diff --git a/resources/cljs-rum/main_dev.cljs b/resources/cljs-rum/main_dev.cljs index 6fae51c..a3ba7b0 100644 --- a/resources/cljs-rum/main_dev.cljs +++ b/resources/cljs-rum/main_dev.cljs @@ -12,4 +12,6 @@ (core/init) + +;; Do not delete, root-el is used by the figwheel-bridge.js (def root-el (core/root-component-factory))