@tanstack/react-query
Hooks for managing, caching and syncing asynchronous and remote data in React
Async server-state: caching, refetching and mutations.
When to choose it: Managing data from an API — caching, background refetch, pagination, mutations. It complements (not replaces) a client store.
- + Best-in-class server cache
- + Great devtools
- + Handles refetch/stale data
- - Not for client/UI state
- - More config than SWR
- Latest version
- 5.100.14
- Monthly downloads
- 225,327,948
- GitHub stars
- 49,542
- Minified + gzip
- 13.3 kB
- Dependencies
- 1
- License
- MIT
Compare @tanstack/react-query with
Data from npm, Bundlephobia and GitHub. Last updated 2026-06-02.