intermediate
Data fetching
Client fetching, cache invalidation, optimistic updates, TanStack Query, and SWR.
Client fetching must handle loading, errors, races, and cache freshness. Libraries like TanStack Query and SWR encode server-state policies that differ from local UI state.
Child topics cover client fetching, cache invalidation, optimistic updates, TanStack Query, and SWR.