We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 8a4ece7 commit 7e66b5cCopy full SHA for 7e66b5c
src/renderer/core.cljs
@@ -71,14 +71,10 @@
71
72
(def root-el (atom nil))
73
74
-(defn ^:dev/after-load ^:export after-load []
75
- (rf/clear-subscription-cache!)
76
- (when @root-el
77
- (ra.dom.client/render @root-el [error/boundary [app.v/root]])))
78
-
79
-(defn mount-root! []
+(defn ^:dev/after-load mount-root! []
80
(let [container (.getElementById js/document "app")]
81
- (reset! root-el (ra.dom.client/create-root container))
+ (rf/clear-subscription-cache!)
+ (when-not @root-el (reset! root-el (ra.dom.client/create-root container)))
82
(ra.dom.client/render @root-el [error/boundary [app.v/root]])))
83
84
(defn bootstrap-cb!
0 commit comments