3 ms·
> I think more than anything its important to consider your store in the same manner you would a database Yes and to keep it normalized. IMO, Redux is incomple
by bugeats 6y ago
> I think more than anything its important to consider your store in the same manner you would a database
Yes and to keep it normalized. IMO, Redux is incomplete without some sort of selector layer, which acts as the metaphorical database views.
https://github.com/reduxjs/reselect https://github.com/reduxjs/reselect
- acemarke 6y agoWe've recommended normalizing data as a pattern for years [0], but never had any official tooling to support that use case. Redux Toolkit 1.3 now has a new `createEntityAdapter` API that can help with the process of inserting and updating normalized data [1]. [0] https://redux.js.org/recipes/structuring-reducers/normalizing-state-shape https://redux.js.org/recipes/structuring-reducers/normalizin... [1] https://redux-toolkit.js.org/api/createEntityAdapter https://redux-toolkit.js.org/api/createEntityAdapter