helix

danielneal 2021-08-10T12:23:16.064300Z

Hey, has anyone got fast-refresh working with helix & figwheel-main?

danielneal 2021-08-10T12:23:30.064700Z

I think I’ve followed the instructions, but any code change seems to wipe all state

lilactown 2021-08-10T16:06:14.065100Z

I haven't tested it with fighwheel-main

lilactown 2021-08-10T16:06:54.066Z

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

lilactown 2021-08-10T16:06:59.066200Z

it used to just silently fail IIRC

dominicm 2021-08-10T22:05:36.067600Z

@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.

danielneal 2021-08-11T08:16:16.075700Z

oh awesome, thanks @dominicm

dominicm 2021-08-11T16:10:19.075900Z

@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!