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

the vite's HMR does not work when I use Class Component and React.lazy() API #4410

Closed
6 tasks done
cookiepool opened this issue Jul 28, 2021 · 1 comment
Closed
6 tasks done

Comments

@cookiepool
Copy link

cookiepool commented Jul 28, 2021

Describe the bug

this bug can releate to #4298

NOTE: if I use Function Component and React.lazy(),it is normal.

Reproduction

can use this repository to recur this bug.

https://github.com/cookiepool/vite-react-typescript-template

@
Contributor
OneNail

System Info

- OS: win 10
- browser:Chrome 91
- react(react-dom): 17.0.2
- react-router-dom: 5.2.0
- react-router-config: 5.1.1
- vite: 2.2.3

Used Package Manager

npm

Logs

no error log!

Validations

@cookiepool
Copy link
Author

Same as this issue #4298 close this one!

@github-actions github-actions bot locked and limited conversation to collaborators Aug 17, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

1 participant