hi all. I've started a new cljs / reagent project, and I have a problem that quite often the app "locks" after compilation. Can't navigate, press buttons etc. The new thing to this project for me is react 18 and the new stuff needed to support that in reagent. So my core.cljs has this:
(defonce root (rdomc/create-root (.getElementById js/document "app")))
(defn ^:dev/after-load mount-root []
(re-frame/clear-subscription-cache!)
(rdomc/render root [views/main-panel]))
where rdomc is [reagent.dom.client :as rdomc]
Rolling back and using the "old" way stops the lock ups so pretty sure it's something to do with this. Am I doing something obviously wrong here?Nothing obviously wrong. You can try opening the DevTools, triggering the hang, and then pressing the Pause button on the Sources tab. Perhaps there's a busy loop somewhere - that should land you right into it. Doesn't always work though.
thanks - I'll give it a go. Happy enough rolling back for now but would obvs prefer not to
If you won't be able to figure it out, try creating a minimal reproducible example.