-
-
Notifications
You must be signed in to change notification settings - Fork 124
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
[plugin-react-refresh] auto page reloading is broken when a jsx file contain multi-components #11
Comments
React fast refresh does not work with |
好吧,看来是我误解了。但是为什么文档里面只字未提这件事? |
I was having the same issue using functional style components. I was able to fix this by not using Chainging this code
To This, fixed it for me
|
I confirmed this still does not work. (Vite 4.0.2 + plugin-react 3.0.0) HMR not happening is expected due to the limitation of react refresh, but the full reload should happen. |
This comment was marked as duplicate.
This comment was marked as duplicate.
This issue will be fixed by #79. Waiting for Vite 4.1 to enable this change |
Describe the bug
For details. Please view the video
Reproduction
https://github.com/kljzndx/Test-Demos/tree/vite-react-bug
System Info
Used Package Manager
yarn
Logs
No response
Validations
The text was updated successfully, but these errors were encountered: