State Management · Senior · Question 5 of 75

Which classification of state helps pick tools in a large app?

Explanation

Each kind has a natural home: server cache - TanStack Query/RTK Query/SWR/loaders; URL - the router; forms - local state or a form library; UI - useState; truly global client state - Context or a store. Putting everything into one store makes it the bottleneck.

Further reading

Problem with a question

State Management · Senior · question 5

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