State Management · Senior · Question 8 of 75
Why is "one big AppContext with all state" considered an anti-pattern?
- ✓Correct answer: Any change re-renders every consumer and couples unrelated modules through one object
- 2Context can't hold more than ten fields
- 3It can't be used in Server Components
Explanation
Typing in a search box re-renders the cart and the header. Split by domain and update frequency, colocate state, and move high-frequency shared state into a store with selectors.