I have a Posts model that has a User and Comments From reading the redux docs I learned that the ideal state is normalised, and using keys like this:

{ "posts": { "byId": { 1: { id: 1, name: "Post One", user: [10] }, 2: { id: 2, name: "Post Two", user: [11] } }, "allIds": [1, 2] }, "users": { "byId": { 10: {username: "User One"}, 11: {username: "User Two"} }, "allIds": [10, 11] } }

This is the state I suppose is correct. Now the issue is if I have an action which fetches all posts, and their user, comments, ...

Using normalizr I can normalise the state to match the model above. When I listen for the FETCH_POSTS_SUCCESS, in the postsReducer.. How can I add the users in their own root path?

Using the postsReducer would result in

state.posts.users

instead, what the good practice dictates is this