3 ms·
A typical example might be a blogging app where posts reference users. Each separate post might have to have a copy of the same user object, whereas with a nor
by acemarke 7y ago
A typical example might be a blogging app where posts reference users. Each separate post might have to have a copy of the same user object, whereas with a normalized state structure [0], the posts reference users by ID, and there is a single copy of each user object stored in a lookup table by ID.
[0] https://redux.js.org/recipes/structuring-reducers/normalizing-state-shape https://redux.js.org/recipes/structuring-reducers/normalizin...