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 refresh - hooks issue #399

Closed
amb445 opened this issue May 24, 2021 · 2 comments · Fixed by #464
Closed

React refresh - hooks issue #399

amb445 opened this issue May 24, 2021 · 2 comments · Fixed by #464

Comments

@amb445
Copy link

amb445 commented May 24, 2021

I am using react-refresh-webpack-plugin and hot reload is not working when I change the component by adding/removing a useEffect.

react-refresh (0. 9. 0)
react-refresh-webpack-plugin (0.4.3)
react (16.13.0)

I am attaching the error message. I have also tried with react-refresh(0.10.0) and react-refresh-webpack-plugin beta version(0.5.0-beta.8) and I get the same error.

react-refresh

@amb445 amb445 changed the title hooks not working React refresh - hooks issue May 24, 2021
@pmmmwh
Copy link
Owner

pmmmwh commented May 24, 2021

Hi, can you provide a reproduction? It's very hard for me to debug without anything to test.

@njzydark
Copy link

njzydark commented Aug 6, 2021

Hi, can you provide a reproduction? It's very hard for me to debug without anything to test.

I meet the same problem, you can try this example: https://github.com/njzydark/chrome-extension-boilerplate

npm i
npm run dev

Then loading extension from chrome and add a hook in options page https://github.com/njzydark/chrome-extension-boilerplate/blob/main/src/options/app.tsx, you can get the same error


I try 0.5.0-beta.0, it works fine, after this version all have this problem

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