State Management · Senior · Question 8 of 75

Why is "one big AppContext with all state" considered an anti-pattern?

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.

Further reading

Problem with a question

State Management · Senior · question 8

Test yourself

Take the State Management · Senior quiz: questions and options are shuffled, and you get a review of your mistakes at the end.

Take this quiz