createSelector
The createSelector utility from the Reselect library, re-exported for ease of use.
For more details on using createSelector, see:
- The Reselect API documentation
- React-Redux docs: Hooks API - Using memoizing selectors
- Idiomatic Redux: Using Reselect Selectors for Encapsulation and Performance
- React/Redux Links: Reducers and Selectors
Note: Prior to v0.7, RTK re-exported
createSelectorfromselectorator, which allowed using string keypaths as input selectors. This was removed, as it ultimately did not provide enough benefits, and the string keypaths made static typing for selectors difficult.