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

Support for React Fast Refresh, as it is the replacement for React Hot Reload #238

Open
Agamennon opened this issue Mar 26, 2021 · 0 comments

Comments

@Agamennon
Copy link

Is your feature request related to a problem? Please describe.
With Fast refresh local state will be preserved for function components and Hooks out of the box
But RES local state inside function components will not, it would be great if the state was preserved!

Describe the solution you'd like
local state of RES being preserved by Fast refresh just like hooks are

Describe alternatives you've considered or seen elsewhere
none

Additional context
Here are some of the limitations of Fast refresh that i have learned:

  • it will re-render a React component when we edit a module that exports only React components
  • it will reload all React components that import a non-React module and the module itself, when we edit it
  • it will do a full reload when we edit a module outside of the React tree
  • it will continue working once we resolve a syntax or a runtime error without having to reload manually
  • local state will be preserved for function components and Hooks out of the box
  • local state won't be preserved for class components
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant