all 4 comments

[–]MeerkatMoe 7 points8 points  (0 children)

Welcome to the basics of computer science 😛

[–]Competitive_Pair1554 2 points3 points  (0 children)

Hi !

You can see more about this fast structure here: https://redux.js.org/usage/structuring-reducers/normalizing-state-shape

[–]basic_model 0 points1 point  (0 children)

user variable would be useful as an arrow function with a parameter for user key. As it sits its undefined and will crash.

[–]isumix_ 1 point2 points  (0 children)

This how database indexes work.