State Management · Junior · Question 38 of 75

How does server state differ from client (UI) state?

Explanation

Server data (a list of orders) can change without the user's knowledge, so it needs caching, refetching and invalidation. UI state (whether a modal is open) belongs entirely to the client. Mixing them in one store leads to manual sync code.

Further reading

Problem with a question

State Management · Junior · question 38

Test yourself

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

Take this quiz