State management and data fetching
Choose where state lives and which tool manages it.
- RCT.09.01Kinds of state and where they liveCoreMid-level10 min
- RCT.09.02Server-state libraries: TanStack Query and SWRCoreMid-level12 min
- RCT.09.03Client-state libraries: Redux Toolkit, Zustand, Jotai, signalsMid-levelBeing written
- RCT.09.04Building a store with useSyncExternalStoreSeniorBeing written
Interview questions in this module
- What is the difference between server state and client state?
- Why use TanStack Query instead of fetching in
useEffect? - When would you use Redux today? When Zustand? When only context?
- How do you implement optimistic updates with rollback?
- Should filter state live in the URL? Why?
- Build a tiny global store with
useSyncExternalStore.