Description
Do you want to request a feature or report a bug?
I use reduceReducers https://github.com/acdlite/reduce-reducers to combine multiple top level reducer, and redux.combineReducer to combine multiple partial reducer to a top level reducer
example
https://github.com/magicdawn/redux-standard-reducer/blob/master/test/simple.js#L10-L22
https://github.com/magicdawn/redux-standard-reducer/blob/master/test/simple.js#L89-L95
What is the current behavior?
And I got this warning
Unexpected key "arr" found in previous state received by the reducer. Expected to find one of the known reducer keys instead: "partial1", "partial2". Unexpected keys will be ignored.
If the current behavior is a bug, please provide the steps to reproduce and if possible a minimal demo of the problem via https://jsfiddle.net or similar.
What is the expected behavior?
https://github.com/reactjs/redux/blob/master/src/combineReducers.js#L16-L55
should Have a way to turn off this warning. As I see, with help of unexpectedKeyCache, I just get warn once per key. but when I use
combineReducers({ group1: function(){ }, ... })
combineReducers({ group2: function(){ }, ... })
I'll get lots of warning, so I suggest add an option in combineReducers
method, and defaults to true, do not influence current behavior and this warning can be turn off.
Which versions of Redux, and which browser and OS are affected by this issue? Did this work in previous versions of Redux?
- [email protected]
- on [email protected], not in a browser env