-
-
Notifications
You must be signed in to change notification settings - Fork 15.3k
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
combineReducers converts Immutable Map into plain JS object #1894
Comments
Uh.... no, There has been some discussion of making |
Ah, I guess I misunderstood. Sorry and thanks for the clarification. |
Is this still the case if my |
That should work okay. The point is that var finalReducerKeys = Object.keys(finalReducers)
// later
for (var i = 0; i < finalReducerKeys.length; i++) {
var key = finalReducerKeys[i]
var reducer = finalReducers[key] Which obviously only works with plain objects. It's the iteration over the object that's the issue - if the values at each key are Immutable objects, that's fine as long as the slice reducer can handle those. |
This is exactly how my setup is, because we're slowly transitioning to Immutable. So... This shouldn't be a problem. What's wrong? |
According to my reading, this should no longer happen in redux v3? Or am I doing something wrong?
myReducer.js
output
The text was updated successfully, but these errors were encountered: