Skip to content

Commit

Permalink
fix: live reload with react 18
Browse files Browse the repository at this point in the history
  • Loading branch information
filipesilva committed Sep 7, 2022
1 parent 9648c64 commit 7c438de
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/cljs/athens/core.cljs
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,8 @@
(rf/clear-subscription-cache!)
(when-not first-boot?
(router/init-routes!))
(.render react-root (r/as-element [views/main])))
;; See https://github.com/reagent-project/reagent/issues/579 as to why we render a anonymous fn.
(.render react-root (r/as-element [(fn [] views/main)])))


(defn sentry-on?
Expand Down

0 comments on commit 7c438de

Please sign in to comment.