Skip to content

Pass properties to reselect selector in statePath #126

@TimPietrusky

Description

@TimPietrusky

I'm using reselect to create a selector and use that selector in my component as the statePath. This is working fine when I can access all my data in the state.

But what if I want to use some properties from the component that need to be passed into the selector, so that it can select a specific element from the state (when the state is an array of objects and I need to select the data of a specific element in the array).

According to the documentation for reselect, you can access properties in selectors by passing them into the selector, but how can this be achieved when using the selector as the statePath?

Additional info

I'm on the https://github.com/tur-nr/polymer-redux/tree/polymer-3 branch

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