mobx vs @tanstack/react-query

@tanstack/react-query is downloaded 13.9× more often than mobx (225,327,948 vs 16,212,601 per month), so it has the larger community and more answered questions online. @tanstack/react-query ships 25% less gzipped JavaScript (13.3 kB vs 17.7 kB), which matters if bundle size is a priority. Both projects are actively maintained.

Metricmobx@tanstack/react-query
Weekly downloads3,789,18051,850,189
Monthly downloads16,212,601225,327,948
GitHub stars28,19449,542
Minified size62.2 kB45.1 kB
Minified + gzipped17.7 kB13.3 kB
Dependencies01
Open issues73172
Last commit2026-05-312026-06-02
Latest version6.15.45.100.14
LicenseMITMIT

When to choose which

mobx

Transparent reactive state via observables.

Choose it when: You prefer an OOP/reactive model where state updates track automatically, with minimal explicit wiring.

  • + Automatic dependency tracking
  • + Less explicit boilerplate
  • - Magic can be hard to debug
  • - Decorator/class style divides opinion

@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

Featuremobx@tanstack/react-query
ParadigmObservablesAsync server cache
First-class TypeScript✓ Yes✓ Yes
Works outside React✓ YesPartial
Dedicated devtools✓ Yes✓ Yes
Built-in async / server stateManual✓ Yes
BoilerplateLowLow

mobx

Simple, scalable state management.

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

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

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