Hey, has anyone got fast-refresh working with helix & figwheel-main?
I think I’ve followed the instructions, but any code change seems to wipe all state
I haven't tested it with fighwheel-main
once thing that trips me up sometimes when updating a project to use react-refresh is a mismatch between versions of react and react-refresh. maybe they've fixed that by now but I would ensure that you have the appropriate version of react-refresh install
it used to just silently fail IIRC
@danieleneal my team contributed that, although we've changed how we do it since for unrelated reasons. I have a working demo in a clj-new template you can test out using clj -X:user/new :template io.dominic.wedge :name danielneal/test-fast-refresh . Note that there is a known bug in fast-refresh if you're using #js: https://github.com/lilactown/helix/issues/85.
oh awesome, thanks @dominicm
@danieleneal lemme know how you get on 🙂 I've not shared wedge widely yet. So if it doesn't work, I'd love to know!