React Fast Refresh doesn't work on Constate side
popo63301 opened this issue · 5 comments
popo63301 commented
Hello !
When I update things in components side, they are updated.
But when I update my Constate file, my app doesn't update.
Any idea why ?
diegohaz commented
No idea! If you can provide a reproduction in CodeSandbox I can take a better look.
popo63301 commented
I've created a reproduction repo: https://github.com/popo63301/constate-reload-problem
- You can start by clicking on counter to update the value.
- If you update the HTML inside App.js, things get updated and the value is still kept.
- If you change the file
constate/index.js
, say you change increment value of 1 to 4, and you test by clicking Counter, increment is not updated.
The only way to update the function is to reload the page.
I think this library is really amazing but it would really be annoying to refresh manually the page. 😄
Can you check that out please ?
marwojcik commented
@popo63301 Have you solved the issue already?
popo63301 commented
@marwojcik didn't check more, I went for an other approach I think.
gaurishhs commented
I am facing the same issue any workarounds?