Hacker News new | past | comments | ask | show | jobs | submit login

> 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




We'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/normalizin...

[1] https://redux-toolkit.js.org/api/createEntityAdapter




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: