Engrain by ByteRush

RCT.09 4 concepts · 2 ready

State management and data fetching

Choose where state lives and which tool manages it.

  1. RCT.09.01Kinds of state and where they liveCoreMid-level10 min
  2. RCT.09.02Server-state libraries: TanStack Query and SWRCoreMid-level12 min
  3. RCT.09.03Client-state libraries: Redux Toolkit, Zustand, Jotai, signalsMid-levelBeing written
  4. RCT.09.04Building a store with useSyncExternalStoreSeniorBeing written

Interview questions in this module

  1. What is the difference between server state and client state?
  2. Why use TanStack Query instead of fetching in useEffect?
  3. When would you use Redux today? When Zustand? When only context?
  4. How do you implement optimistic updates with rollback?
  5. Should filter state live in the URL? Why?
  6. Build a tiny global store with useSyncExternalStore.