Skip to content

Document required default state in reducer #1617

@DaveStein

Description

@DaveStein

Related to my pitfall here: http://stackoverflow.com/questions/36631728/why-isnt-combinereducers-receiving-state-in-redux/36633079#36633079

The docs show reducers having a default value for state, but it is never listed as required. The fact that an INIT action is fired before createStore takes advantage of initialState was confusing.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions