react-hot-loader: [v3b1] "Full reload needed" error
I must be fundamentally misunderstanding how this is supposed to work. I have pared down my app to the bare minimum and it is still refusing to reload my component. My best guess is that either react-router or react-redux is breaking the chain of knowledge of how to reload somehow.
I have created a repo demonstrating my problem.
https://github.com/erikras/react-hot-loader-problem
Update: I have removed react-router and react-redux from the project and it still happens. My config must be broken.
Any help would be most appreciated. Cheers.
About this issue
- Original URL
- State: closed
- Created 8 years ago
- Reactions: 7
- Comments: 15 (4 by maintainers)
UPDATE 2: I fixed it.
The problem was with my
module.hot.acceptreloads. I forgot to add.defaultafter the required modules.Thanks @erikras, you served as my Debug Rubber Duck today 😃
@gaearon was right of course 😁
The fix in my case was related to react-router. Passing
routesin as a prop to<Root />breaks HMR, but importing them directly intoRoot.jsworks.Any idea why? Routing was working as expected in the former version, and I assumed the output either way would be the same.
@romulof Great catch! I had same issue