Stack Explorer

SWR

Data Fetching

React hooks for data fetching with stale-while-revalidate strategy

3M/week 4.2KB → Stable

Features

data-fetchingvercelminimal

Pros and Cons

Ventajas

  • + Very small bundle size
  • + Simple and elegant API
  • + By Vercel team
  • + Great with Next.js

Desventajas

  • - Less features than TanStack Query
  • - No built-in devtools

Use Cases

  • Simple data fetching
  • Next.js projects
  • Apps prioritizing bundle size

Tecnologías Relacionadas

Compatible with

Alternatives