-
-
Notifications
You must be signed in to change notification settings - Fork 11
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
Initial state must be always passed to reducer #2
Comments
Reducers shouldn't react to return reducer(initialState, { type: '@@redux-recycle/INIT' }) Would you mind doing a PR for this? 😄 |
Two OSS maintainers waiting for each other :-) Maybe next week ;) |
@steida Haha, it's alright, I was gonna do it this weekend anyway 😉 I released |
Yes, it works. Thank you! |
You're welcome 😃 |
My workaround.
That's because I am using immutable values, which have to be revived like this: https://github.com/este/este/blob/master/src/common/todos/reducer.js#L16
Returning plain initialState simply doesn't work, since state must be revived immutable value.
The text was updated successfully, but these errors were encountered: