Tag view

#api

Cross-subject tag search for related interview cards.

Clear

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

Tagged with api

4 cards

JavaScript Medium Theory

API and network basics in JavaScript: fetch, XMLHttpRequest, HTTP methods, JSON responses, and error handling in API calls

Frontend and Node.js code often call APIs using `fetch` today, but interviews still expect you to know HTTP basics and sometimes older XHR patterns.

  • Know common HTTP methods
  • `fetch` returns a promise
  • HTTP errors and network failures are not the same thing

API and network basics in JavaScript: fetch, XMLHttpRequest, HTTP methods, JSON responses, and error handling in API calls

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