Conceptual
Login

Memoized Selectors with Reselect

`createSelector` composes input selectors into a derived-data function that recomputes only when an input's reference changes, returning the cached result otherwise. Stable references matter doubly in React: `useSelector` re-renders a component whenever its selector's result is not reference-equal to the last one.

This Concept is waiting for its first lesson!

`createSelector` composes input selectors into a derived-data function that recomputes only when an input's reference changes, returning the cached result otherwise. Stable references matter doubly in React: `useSelector` re-renders a component whenever its selector's result is not reference-equal to the last one.

Are you a teacher? Sign in to start contributing.

Sign In