3 ms·
Hey, I wrote that docs page back in 2016 :) I'd been using an early version of Redux-ORM on a project, there were some Redux repo discussion threads about this
by acemarke 5y ago
Hey, I wrote that docs page back in 2016 :) I'd been using an early version of Redux-ORM on a project, there were some Redux repo discussion threads about this problem space, and it seemed like something that was worth documenting.
We did eventually add a `createEntityAdapter` API to Redux Toolkit [0] [1], which handles the process of storing items in normalized form and provides "CRUD"-style reducers for typical operations on that data, but it doesn't provide any support for managing relations specifically.
That topic _has_ come up a few times recently, so I've been contemplating that as a thing we might consider trying in a future version of RTK.
If folks have thoughts on what that API's requirements might look like, I'd be happy to start discussing that over in the RTK repo!
[0] https://redux-toolkit.js.org/api/createEntityAdapter https://redux-toolkit.js.org/api/createEntityAdapter
[1] https://redux.js.org/tutorials/essentials/part-6-performance-normalization#normalizing-data https://redux.js.org/tutorials/essentials/part-6-performance...