ReduxJS/Toolkit: createSelector
Batteries Included: Reselect
reduxjs/reselect
:
Create memoized ‘selector’ functions
One of the Redux Style Guide “Strongly Recommended” rules is Keep State Minimal and Derive Additional Values:
Keep the actual data in the Redux store as minimal as possible, and derive additional values from that state as needed.
Keeping all that efficient is where createSelector
comes into play.