query
- Provides hooks for fetching, caching, and updating asynchronous data
- Supports multiple frameworks including React, Solid, Svelte, and Vue
- Transport/protocol/backend agnostic (works with REST, GraphQL, promises, etc.)
- Key features:
- Auto caching + refetching (stale-while-revalidate, window refocus, polling)
- Parallel + dependent queries
- Mutations with reactive query refetching
- Multi-layer cache with automatic garbage collection
- Pagination + cursor-based queries
- Infinite scroll with scroll recovery
- Request cancellation
- React Suspense support
- Dedicated devtools
- Part of the larger TanStack ecosystem
- Target audience: Developers needing robust async data management across frontend frameworks
- Documentation available at tanstack.com/query
reacthooksfetchcacheasyncrestgraphqldataquerystalestale-while-revalidateupdatesolidsveltetypescriptvue
Featured Stories
No featured articles here. Navigate to an article, then pick the Feature on menu button