redux vs @tanstack/react-query

@tanstack/react-query is downloaded 1.7× more often than redux (225,327,948 vs 133,171,760 per month), so it has the larger community and more answered questions online. redux ships 90% less gzipped JavaScript (1.4 kB vs 13.3 kB), which matters if bundle size is a priority. Both projects are actively maintained.

Metricredux@tanstack/react-query
Weekly downloads31,133,48451,850,189
Monthly downloads133,171,760225,327,948
GitHub stars61,43949,542
Minified size3.3 kB45.1 kB
Minified + gzipped1.4 kB13.3 kB
Dependencies01
Open issues43172
Last commit2026-05-152026-06-02
Latest version5.0.15.100.14
LicenseMITMIT

When to choose which

redux

The original predictable state container.

Choose it when: Rarely on its own anymore — reach for Redux Toolkit instead. Use raw redux only for legacy code or custom store setups.

  • + Battle-tested
  • + Framework-agnostic core
  • - Lots of boilerplate without RTK
  • - Async needs middleware

@tanstack/react-query

Async server-state: caching, refetching and mutations.

Choose it when: 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

Feature comparison

Featureredux@tanstack/react-query
ParadigmFlux / reducersAsync server cache
First-class TypeScriptVerbose✓ Yes
Works outside React✓ YesPartial
Dedicated devtools✓ Yes✓ Yes
Built-in async / server state✗ No✓ Yes
BoilerplateHighLow

redux

Predictable state container for JavaScript apps

@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.

redux vs @tanstack/react-query downloads
[![redux vs @tanstack/react-query](https://devcompare.dev/badge/redux-vs-tanstack-react-query.svg)](https://devcompare.dev/compare/redux-vs-tanstack-react-query)

Data from npm, Bundlephobia and GitHub. Last updated 2026-06-02.