@tanstack/react-query vs xstate
@tanstack/react-query is downloaded 11.1× more often than xstate (225,327,948 vs 20,263,809 per month), so it has the larger community and more answered questions online. Both projects are actively maintained.
| Metric | @tanstack/react-query | xstate |
|---|---|---|
| Weekly downloads | 51,850,189✓ | 4,469,231 |
| Monthly downloads | 225,327,948✓ | 20,263,809 |
| GitHub stars | 49,537✓ | 29,666 |
| Minified size | 45.1 kB | 44.7 kB✓ |
| Minified + gzipped | 13.3 kB✓ | 14.1 kB |
| Dependencies | 1 | 0✓ |
| Open issues | 170 | 123✓ |
| Last commit | 2026-06-01✓ | 2026-06-01 |
| Latest version | 5.100.14 | 5.32.0 |
| License | MIT | MIT |
@tanstack/react-query
Hooks for managing, caching and syncing asynchronous and remote data in React
Related comparisons
Embed this comparison
A live badge for your README — it updates as the numbers change.
[](https://devcompare.dev/compare/tanstack-react-query-vs-xstate)Data from npm, Bundlephobia and GitHub. Last updated 2026-06-01.