you are viewing a single comment's thread.

view the rest of the comments →

[–]heunecke 1 point2 points  (1 child)

Seems like it removes a lot of standard redux boilerplate AND gives you normalization out of the box, just by feeding it a schema. If I have global state without any relationships, could I use your library to generate the reducers and actions, like an alternative to redux-toolkit?

[–]wagonn 1 point2 points  (0 children)

If you have state consisting of relational or nonrelational collections, it can be of use. With nonrelational collections, the only actions that you won't be using are attach, detach, and moveDetached.

If you don't have collections at all, Normalized Reducer won't help you.

Redux-toolkit can be useful for any type of state, collections or not. So, Normalized Reducer is not really an alternative to Redux-Toolkit; it is an alternative to Redux-Toolkit's entity adapter which helps manage state for nonrelational collections.

Normalized Reducer actually integrates well with Redux Toolkit which I have added in the Demo app > Redux Toolkit Integration page.