News for hackers. Stuff that matters.
Re:Reasons to Avoid Using ImmutableJS with Redux by uptown on Saturday January 04, 2020 @03:13PM (#21957144)
“A nested state is more likely to store duplicate data”

I’m not sure I follow why nested state is more likely to duplicate data.

Re:Reasons to Avoid Using ImmutableJS with Redux by acemarke on Saturday January 04, 2020 @04:25PM (#21957689)
A typical example might be a blogging app where posts reference users. Each separate post might have to have a copy of the same user object, whereas with a normalized state structure [0], the posts reference users by ID, and there is a single copy of each user object stored in a lookup table by ID.

[0] https://redux.js.org/recipes/structuring-reducers/normalizin...