Fork me on GitHub
#helix
<
2021-08-10
>
danielneal12:08:16

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

danielneal12:08:30

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

lilactown16:08:14

I haven't tested it with fighwheel-main

lilactown16:08:54

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

lilactown16:08:59

it used to just silently fail IIRC

dominicm22:08:36

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

danielneal08:08:16

oh awesome, thanks @U09LZR36F

dominicm16:08:19

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