Conceptual
Login

State Normalization

Store collections as `{ids: [], entities: {id: item}}` — a lookup table plus an ordering array — instead of nested arrays, so each entity lives in exactly one place and updates touch one object. Redux Toolkit's `createEntityAdapter` generates the reducers and selectors for this shape.

This Concept is waiting for its first lesson!

Store collections as `{ids: [], entities: {id: item}}` — a lookup table plus an ordering array — instead of nested arrays, so each entity lives in exactly one place and updates touch one object. Redux Toolkit's `createEntityAdapter` generates the reducers and selectors for this shape.

Are you a teacher? Sign in to start contributing.

Sign In