Top "Reselect" questions

Reselect is a selector library for Redux.

Use reselect selector with parameters

How do I pass additional parameters to combined selectors? I am trying to • Get data • Filter data • Add custom value …

javascript reactjs ecmascript-6 redux reselect
Reselect - selector that invokes another selector?

I have a selector: const someSelector = createSelector( getUserIdsSelector, (ids) => ids.map((id) => yetAnotherSelector(store, id), ); // ^^^^^ (yetAnotherSelector expects 2 args) …

javascript reactjs reselect
How can I get ownProps using reselect on redux?

I want to create a selector with memoization using reselect based on some ownProps of mapStateToProps.

reactjs redux reselect
how to use selectors in redux app with TypeScript?

I try to use selectors from reselect library in my Redux app. my selectors file looks: import { createSelector } from 'reselect' …

typescript redux reselect
Is there a way to properly mock Reselect selectors for unit testing?

I'm having a pretty complex selectors structure in my project (some selectors may have up to 5 levels of nesting) so …

javascript unit-testing jestjs reselect
How is state passed to selectors in a react-redux app?

I came across an example, where the mapStateToProps function is using memoization. I was just wondering how the "state" parameter …

javascript reactjs redux reselect
How to use Reselect selectors inside a Redux reducer

My app already has a large collection of selectors used by the various container objects. These are great for accessing …

redux reselect
How do you use `reselect` to memoize an array?

Suppose I have a redux store with this state structure: { items: { "id1" : { foo: "foo1", bar: "bar1" }, "id2": { foo: "foo2", bar: "…

javascript redux reselect
Assign correct types to Reselect createSelector function

Edit: added package.json excerpt I am trying to implement typescript in an existing React project and I am facing …

reactjs typescript redux typescript2.0 reselect