Skip to content

Default initialState in 3.2.0 breaks code #54

Closed
@Antontelesh

Description

@Antontelesh

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
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions