React · Senior · Question 41 of 75

Do you need Redux or Zustand if server data is already in TanStack Query?

Explanation

A large share of "global state" in typical apps is a cache of server data. Once TanStack Query takes it over, the remaining client state (theme, filters, wizard state) is often small. A store is justified for complex client logic: editors, offline mode, complex forms.

Further reading

Problem with a question

React · Senior · question 41

Test yourself

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

Take this quiz