SWR

A React data-fetching library from Vercel, named after the stale-while-revalidate strategy: show cached data at once, then refresh it in the background.

In more detail

The strategy comes from an HTTP caching directive. Like TanStack Query, SWR deduplicates requests and can work with Suspense.

Related terms

Taught in

References