Closed
Description
Assume you had a root reducer that set initial state when called:
const initialState = Map();
function reducer (state = Map(), action) {...}
When upgrading to 3.2.0 from previous minor version, this code breaks, because es6 default parameter no more applied, because state is {}
by default. It's really a breaking change.
I think, ng-redux
should not set empty object as default initial state. But that will cause problems with packages that depend on that feature.
Metadata
Metadata
Assignees
Labels
No labels