Stack Gems
Menu
← Catalog

SWR

MIT React Hooks for data fetching by Vercel

Next.js / App Platform · OSS/MIT · 32.5k

Reviewed 2026-10-18 · last push 2026-10-16 · repo checked 2026-10-19

What's Good

MIT (vercel/swr), release v2.5.1 (2026-08-12). One hook handles caching, request deduplication, revalidation on focus and reconnect, pagination and mutation. Works with any transport (fetch, GraphQL, etc.). Maintained by Vercel and widely used with Next.js. ★~32.5k.

The Catch

Smaller than TanStack Query in features like devtools and fine cache control. With React Server Components, much fetching moves to the server, so you need SWR less in new Next.js apps.

Verdict

The light, simple choice for client-side fetching in React.

Embed

Maintainer? Add the badge to your README. It is free, links to this review, and there is no paid version.

Reviewed on Stack Gems

Markdown

[![Reviewed on Stack Gems](https://stackgems.com/badge/swr.svg)](https://stackgems.com/gems/swr)

HTML

<a href="https://stackgems.com/gems/swr"><img src="https://stackgems.com/badge/swr.svg" alt="SWR reviewed on Stack Gems" height="20"></a>