Skip to content

mapStateToProps() in Connect(Dashboard) must return a plain object. Instead received undefined. #1029

@dancomanlive

Description

@dancomanlive

When using

@connect()

in any screen that is not rendered at startup (when the app is loading) it works, otherwise not. When not working the following error is displayed

mapStateToProps() in Connect(Dashboard) must return a plain object. Instead received undefined.
- node_modules/react-redux/lib/utils/warning.js:14:18 in warning

It looks like the store is not ready so rendering the startup components needs to be delayed until the store is rehydrated maybe?

Metadata

Metadata

Assignees

No one assigned

    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