KBAISE/ for lovable
Directory

SWR

Data-fetching hooks

FreeLibraries & build toolingswr.vercel.app

What it is

Vercel's data-fetching hook library, v2, built on stale-while-revalidate: show cached data instantly, refetch in the background. Much smaller and simpler than TanStack Query, with revalidation on focus and reconnect plus pagination and mutation helpers.

Why it earns a slot

A lighter alternative when you want caching and revalidation but not TanStack Query's full surface. Common in Next.js codebases, so you will meet it in inherited or AI-generated Vercel-flavoured code.

Know before you commit

Thinner feature set: weaker devtools, less capable mutation and invalidation. Most greenfield projects pick TanStack Query instead.

Getting started

npm install swr

Field notes

0 from the community

Sign in to add a field note. Reading is always open.

Loading notes…

Also in Libraries & build tooling

Astro Starlight + Nextra
starlight.astro.build

Framework docs themes

FreeLibraries & build tooling
Free · MIT
Open dossier
Biome
biomejs.dev

Linter + formatter (Rust)

FreeLibraries & build tooling
Free · MIT/Apache-2.0
Open dossier
Bun
bun.sh

JS runtime + package manager

FreeLibraries & build tooling
Free · MIT
Open dossier
Chromatic
chromatic.com

Visual regression testing

Free tier + paidLibraries & build tooling
Free tier · Starter $179/mo
Open dossier