TanStack/query
🤖 Powerful asynchronous state management, server-state utilities and data fetching for the web. TS/JS, React Query, Solid Query, Svelte Query and Vue Query. observed · 2026-08-28
Health v2 · maintenance only
95/100
- Activity 99
- Release rhythm 87
- Longevity 100
How is this computed?
round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10) — computed 2026-09-03. Adoption (stars, forks) is never an input.
- gap_med: 0
- age_days: 2549
- days_rel: 6
- days_push: 7
- n_releases_24m: 1510
Adoption not part of the score
50211 stars · 4195 forks observed · 2026-08-28
What it is AI-extracted, prompt v1, taxonomy v1, 2026-08-29, confidence not recorded
TanStack Query (formerly React Query) is a TypeScript library for asynchronous state management that handles fetching, caching, synchronizing, and updating server state in web applications. It provides declarative hooks and adapters for React, Vue, Solid, Svelte, Angular, Lit, and Preact, with built-in caching, retries, deduplication, and background refetching.
Use cases
- fetch and cache API data in React
- manage server state in a web app
- implement infinite scroll and pagination
- refetch data on window focus
- handle optimistic updates after mutations
- deduplicate duplicate API requests
- prefetch data for routes
- replace Redux for async data
When to choose
- your app relies heavily on remote/server data that needs caching and revalidation
- you want retries, deduplication, and background refetching out of the box
- you use React, Vue, Solid, Svelte, Angular, or Lit and want typed async state hooks
- you need pagination, infinite queries, or offline mutation queues
When to avoid
- you only manage local client-side UI state with no server data
- you need a full global state store for complex client state (combine with a state library)
- your project cannot adopt its opinionated defaults and cache lifecycle
- you work outside the supported JS frameworks
Facets
library · maturity stable
state-management http-client caching middleware frontend web-development apis browser cross-platform react-query server-state data-fetching async-state stale-while-revalidate hooks vue svelte solid angular typescript nodejs web-server
10 sources
- readme: https://github.com/TanStack/query · fetched 2026-08-28 · c8fe19d2c823
- homepage: https://tanstack.com/query · fetched 2026-08-28 · 36b2a30181bd
- site_page: https://tanstack.com/query/latest/docs/framework/react/overview · fetched 2026-08-28 · 0e50d82f9263
- site_page: https://tanstack.com/query/latest/docs/framework/react/guides/important-defaults · fetched 2026-08-28 · 4aea6d62ced4
- site_page: https://tanstack.com/query/latest/docs/reference/QueryClient · fetched 2026-08-28 · bf4797201814
- site_page: https://tanstack.com/query/latest/docs/framework/react/examples/simple · fetched 2026-08-28 · f313f1304ac8
- site_page: https://tanstack.com/query/latest/docs/blog · fetched 2026-08-28 · 7742c2010223
- site_page: https://tanstack.com/query/latest/docs/framework · fetched 2026-08-28 · 4eca16a4bb9f
- site_page: https://tanstack.com/query/latest/docs/contributors · fetched 2026-08-28 · e301522bb098
- site_page: https://tanstack.com/blog · fetched 2026-08-28 · f45f670c0ce6
Member repositories
| Repository | Role | Health v2 |
|---|---|---|
| TanStack/query | main | 95 |
For agents
Data as of 2026-08-30T08:39:29.467469+00:00 · Report a problem