Skip to the page

State & data fetching · Scenario

"How would you manage state in this app?"

The interviewer asks

Here's the app: product list with filters, cart, logged-in user, a live order-status widget. How would you manage state? Your team wants Redux and you think it's overkill. How do you handle that?

Then

Follow-ups the interviewer asks next

  1. Which of these is server state vs client state vs URL state vs form state?
  2. What would make you switch from Context to Zustand or Redux?
  3. How do you keep the cart in sync across tabs?
  4. How do you settle the disagreement with the team?

The answer

What a strong answer covers

  • Classify the state:
  • server cache: TanStack Query or RTK Query
  • URL state: filters and pagination in search params
  • local UI state: useState
  • shared client state: Zustand or RTK slice
  • form state: react-hook-form or Actions
  • Pick the smallest tool per category, and name the migration triggers (cross-cutting updates, devtools/time-travel needs, team size, perf).
  • Cross-tab sync with the storage event or BroadcastChannel.
  • Disagreement: prototype both, agree on criteria, write an ADR, revisit later.

The red pen

Common traps

Avoid:one global store for everything; "Redux is dead" or "Redux always" dogma.

Practise this out loud

Say your answer out loud to an AI interviewer that follows up, and get a score for it.

Practise by voice

Practise questions like this out loud

Sign up and start with a 15-minute interview with the full report, and an English conversation. No card needed.

Start your free interview