Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

React Fast Refresh doesn't work on Constate side #146

Open
popo63301 opened this issue Jul 25, 2021 · 5 comments
Open

React Fast Refresh doesn't work on Constate side #146

popo63301 opened this issue Jul 25, 2021 · 5 comments

Comments

@popo63301
Copy link

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
Copy link
Owner

No idea! If you can provide a reproduction in CodeSandbox I can take a better look.

@popo63301
Copy link
Author

popo63301 commented Jul 25, 2021

I've created a reproduction repo: https://github.com/popo63301/constate-reload-problem

  1. You can start by clicking on counter to update the value.
  2. If you update the HTML inside App.js, things get updated and the value is still kept.
  3. 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
Copy link

@popo63301 Have you solved the issue already?

@popo63301
Copy link
Author

@marwojcik didn't check more, I went for an other approach I think.

@gaurishhs
Copy link

I am facing the same issue any workarounds?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants