React · Senior · Question 41 of 75
Do you need Redux or Zustand if server data is already in TanStack Query?
- ✓Correct answer: Often not: little client state remains, and
useStateand Context are enough - 2Yes, always: TanStack Query works only on top of a Redux store
- 3No, never: TanStack Query fully stores client UI state as well
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.