Tag view

#data-fetching

Cross-subject tag search for related interview cards.

Clear

Results update as you type. Press / to jump straight into search.

Tagged with data-fetching

2 cards

React Hard Theory

Data fetching in React: useEffect, loading and error states, cleanup, race conditions, AbortController, React Query, SWR, and server vs client state

React data fetching is about both getting data and managing cache, loading, error, cancellation, and freshness correctly.

  • Server state behaves differently from local UI state
  • Race conditions happen when requests overlap
  • Libraries like TanStack Query and SWR help with caching and synchronization

Data fetching in React: useEffect, loading and error states, cleanup, race conditions, AbortController, React Query, SWR, and server vs client state