reselect icon indicating copy to clipboard operation
reselect copied to clipboard

How-to: use Reselect with props/state

Open compulim opened this issue 10 years ago • 1 comments

Reselect is good for selecting "static" data. But the selection result cannot be always deduced from store alone. Sometimes we could need more information from props or state.

In a master/detail component set, instead of using store, the master could use props to send the ID to the detail component.

It would be great if Reselect could jump in and select data based on store + props.

compulim avatar Dec 07 '15 03:12 compulim

Sure, check out: https://github.com/rackt/reselect#accessing-react-props-in-selectors

ellbee avatar Dec 07 '15 12:12 ellbee