-
-
Notifications
You must be signed in to ch 8000 ange notification settings - Fork 15.2k
getState() in actionCreators returns initial state, not current state after a reload #90
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
Comments
Good catch, I can reproduce this. |
If you'd like to add a failing test for this, I would appreciate it! |
after looking at it briefly, i'm not sure of how to write a test for it. It looks like a new |
The test would create two Redux instances, call |
I'm currently looking at the underlying problem, but a test would help make sure I actually fix it correctly. :-) |
In the example app,
incrementIfOdd
breaks after the first hot reload.getState
seems to return the initial state rather than the current state.The text was updated successfully, but these errors were encountered: