Connecting Redux to your API
Emil Ong
1174

I’ve tested both flat and nested application state architectures, and I’ve found the correct solution is really context dependent. If a given entity type only has a “life” in the context of a parent entity, it is better to view that entity as an extension of the parent, and nested state is much easier to work with. On the other hand, if an entity has a significant life in your application outside the context of the immediate parent, it is better to normalize.

As a side note, if you’re interested in greatly simplifying the process of writing APIs that incorporate Redux, check out https://github.com/nathan-rice/radical

One clap, two clap, three clap, forty?

By clapping more or less, you can signal to us which stories really stand out.