TanStack Query
Manage fetched server data, caching, and updates in an interface.
Web & UI · Documentation reviewed 2026-11-10. Not independently tested.
When it helps
Applications coordinating loading states, cached queries, mutations, and refresh behavior across screens.
What to consider
MIT-licensed library. Retry, cache lifetime, and invalidation settings need deliberate choices. Client state handling does not replace backend access control.
Getting started
Install the adapter for your framework, configure a query client, and connect one query and mutation to your existing API.
Access & costs
- Runs
- Local
- External account
- Not required
- API key
- Not required
- Costs
- Your hardware / hosting
No external account or API key is needed for the library itself. Your application hosting and connected services are separate.
- Supported frontend framework adapter
- An API or async data source
Repository evidence
Stars: 50,620 · License: MIT
Last code push: 2026-11-22
Statistics retrieved: 2026-11-23T06:39:00+00:00
Counts are snapshots, not live rankings. Review the repository license and any hosted-service terms before adopting it.
Adding model calls?
Plan the tokens, retries, and fallback costs before connecting your tools.