Fork me on GitHub
#fulcro
<
2022-01-31
>
Hukka16:01:08

Hrmh. I'm doing set-root! (with initialize), change-route, and mount! (with :initialize-state? false) and I'm still getting the ASM path warning. Tried explicit dr/initialize! too before changing the route, but that didn't help.

tony.kay00:02:28

Yeah, I need to work on the warnings/errors a bit at some point.

donavan15:02:28

I think I got rid of that error by not mounting the component with the root router… i.e. Root (mounted by React) -> Chrome (with router)

Hukka17:02:53

Hm, what an odd workaround

dvingo17:02:39

I've found rendering on the next turn of the event loop to work (the router is a state machine which uses transactions to work, which are async so this is a hack to let the transactions finish) https://github.com/dvingo/dv.fulcro-template/blob/5d69fefd7157f52bf725c362e794b9eacf3ea25d/resources/clj/new/dv.fulcro_template/src/main/app/client/client_entry.cljs#L46