Design Patterns · Senior · Question 37 of 75
Why is normalizing data in a frontend store an architectural pattern rather than a micro-optimization?
- ✓Correct answer: Each entity is stored once by id - no desync
- 2Normalized data takes less space in localStorage
- 3Without normalization, Redux forbids storing arrays
Explanation
If a user appears both in a list and in comments, denormalized copies drift apart. An { ids, entities } table gives a single source of truth and fast updates by id. The cost is assembling data with selectors.