Skip to content

Clear example with top-level Redux connect  #260

@adamski

Description

@adamski

I'm struggling to work out how to access redux state from a connected component's props, using the top level method connecting it to the Router.
I'd like to avoid using multiple connects, as the Redux docs state:

Try to only do this for a top-level component, or route handlers

I'm refactoring some code using NavigatorIOS and was previously passing the necessary props using passProps. I can't see an equivalent - I guess that happens behind the scenes with connect? Or do I need to connect each Route's component?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions