Skip to content

Commit eb6d662

Browse files
committed
fix root hot reload
1 parent 2324ce8 commit eb6d662

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

src/renderer/core.cljs

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -70,10 +70,13 @@
7070
╚═════╝░░░░╚═╝░░░░╚═════╝░╚═════╝░╚═╝░╚════╝░")
7171

7272
(defn mount-root! []
73-
(rf/clear-subscription-cache!)
7473
(let [container (.getElementById js/document "app")
7574
root (ra.dom.client/create-root container)]
76-
(ra.dom.client/render root [error/boundary [app.v/root]])))
75+
(ra.dom.client/render root [error/boundary [app.v/root]])
76+
77+
(defn ^:dev/after-load after-load []
78+
(rf/clear-subscription-cache!)
79+
(ra.dom.client/render root [error/boundary [app.v/root]]))))
7780

7881
(defn bootstrap-cb!
7982
[]

0 commit comments

Comments
 (0)