State Management · Middle · Question 17 of 75
What does normalized state ({ ids, entities }) give you?
- ✓Correct answer: Each item is stored once by id, so updates and lookups are simple and consistent
- 2Smaller bundle size thanks to compression
- 3Automatic syncing with the server
Explanation
Nested duplicated data goes out of sync (the same user in a list and in comments). createEntityAdapter provides normalized state plus addOne, upsertMany, removeOne and selectors like selectAll/selectById.