query
- Purpose: Provides hooks for fetching, caching, and updating asynchronous data in web applications.
- Key Features:
- Transport/protocol/backend agnostic data fetching (REST, GraphQL, promises, etc.)
- Auto-caching with refetching (stale-while-revalidate, window refocus, polling/realtime)
- Support for parallel and dependent queries
- Mutations with reactive query refetching
- Multi-layer cache with automatic garbage collection
- Paginated and cursor-based queries
- Infinite scroll with scroll recovery
- Request cancellation
- React Suspense support with prefetching
- Dedicated Devtools
- Framework Support: Works with React, Solid, Svelte, and Vue.
- Target Audience: Developers building data-driven applications that require efficient asynchronous data management.
- Documentation: Available at tanstack.com/query .
- Community: Active discussions and support via GitHub Discussions and Discord .
reacthooksfetchcacheasyncrestgraphqldataquerystalestale-while-revalidateupdatesolidsveltetypescriptvue
Featured Stories
No featured articles here. Navigate to an article, then pick the Feature on menu button