You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Thanks for devcards! It's been very helpful in demoing the power of ClojureScript :)
I'm using Shadow-CLJS, and I couldn't find a way to force dev-cards to be re-rendered upon a hot-code reload event. I see my code been reloaded, but calling (dc/start-devcard-ui!) doesn't update the interface.
I've found the workaround of calling (devcards.system/renderer @devcards.system/app-state) after the hot-code reload and this seems to do the trick. I wonder if this should be documented or be made official, as I'm not sure if this is supposed to be public API or not.
Thanks again, and happy new year!
The text was updated successfully, but these errors were encountered:
Hi @orestis! I have the same problem, but unfortunately your decision doesn't work for me. I added (devcards.system/renderer @devcards.system/app-state) to after-load shadow-cljs hook. Can you explain more details how you fixed this problem?
Thanks for devcards! It's been very helpful in demoing the power of ClojureScript :)
I'm using Shadow-CLJS, and I couldn't find a way to force dev-cards to be re-rendered upon a hot-code reload event. I see my code been reloaded, but calling
(dc/start-devcard-ui!)
doesn't update the interface.I've found the workaround of calling
(devcards.system/renderer @devcards.system/app-state)
after the hot-code reload and this seems to do the trick. I wonder if this should be documented or be made official, as I'm not sure if this is supposed to be public API or not.Thanks again, and happy new year!
The text was updated successfully, but these errors were encountered: