File tree Expand file tree Collapse file tree 1 file changed +10
-7
lines changed Expand file tree Collapse file tree 1 file changed +10
-7
lines changed Original file line number Diff line number Diff line change 69
69
██████╔╝░░░██║░░░╚██████╔╝██████╔╝██║╚█████╔╝
70
70
╚═════╝░░░░╚═╝░░░░╚═════╝░╚═════╝░╚═╝░╚════╝░" )
71
71
72
- (defn mount-root! []
73
- (let [container (.getElementById js/document " app" )
74
- root (ra.dom.client/create-root container)]
75
- (ra.dom.client/render root [error/boundary [app.v/root]])
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]])))
76
78
77
- (defn ^:dev/after-load after-load []
78
- (rf/clear-subscription-cache! )
79
- (ra.dom.client/render root [error/boundary [app.v/root]]))))
79
+ (defn mount-root! []
80
+ (let [container (.getElementById js/document " app" )]
81
+ (reset! root-el (ra.dom.client/create-root container))
82
+ (ra.dom.client/render @root-el [error/boundary [app.v/root]])))
80
83
81
84
(defn bootstrap-cb!
82
85
[]
You can’t perform that action at this time.
0 commit comments