-
Notifications
You must be signed in to change notification settings - Fork 799
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-redux 5.0.2 to 5.0.3 update break hot reloading #492
Comments
Can you confirm whether this breaks when you don't have React Hot Loader? From your description it sounds like it just breaks HMR for Redux state, not React components specifically. |
@calesce For me it looks like the store becomes disconnected somehow - components don't break - actually after some more digging in There is a very simple demo repo you can find here. I also noticed that hmr with |
Edit: Disregard most of this, it seems to have come back with beta.5 tooNot sure if it's related, but I think the issue is not with
|
For me, the problem was with react-redux. I was using version 5.05 of react-redux, went back to version 4.4.8 and it solved the issue. I'm not using react-hot-loader. The project uses typescript. The @types/react-redux version refers to version 4, no idea if that could be affecting the compilation by somehow providing wrong types of the lib, as going back to version 4 solved the issue I did not try to remove @types/react-redux to test this hypothesis. |
Seems fixed reduxjs/react-redux#715 |
Description
After updating from
react-redux
5.0.2
to5.0.3
hot reloading break the redux state.Expected behavior
hot reloading should not break redux state.
Actual behavior
with
react-redux
5.0.3
the redux state breaks after a hot reload has happened.Environment
react-hot-loader
3.0.0-beta.6
Reproducible Demo
Any project will do, just upgrade
react-redux
to5.0.3
and experience the issue.The text was updated successfully, but these errors were encountered: