@hookstate/core vs @tanstack/react-query

@tanstack/react-query is downloaded 497.7× more often than @hookstate/core (225,327,948 vs 452,718 per month), so it has the larger community and more answered questions online. @hookstate/core ships 55% less gzipped JavaScript (6.0 kB vs 13.3 kB), which matters if bundle size is a priority. @tanstack/react-query has been updated more recently, a sign of more active maintenance.

Metric@hookstate/core@tanstack/react-query
Weekly downloads84,84851,850,189
Monthly downloads452,718225,327,948
GitHub stars1,65649,542
Minified size23.4 kB45.1 kB
Minified + gzipped6.0 kB13.3 kB
Dependencies01
Open issues32172
Last commit2025-03-202026-06-02
Latest version4.0.25.100.14
LicenseMITMIT

When to choose which

@hookstate/core

Nested state via proxies with a plugin system.

Choose it when: You manage deeply nested state and want fine-grained updates plus plugins (persistence, validation).

  • + Fine-grained nested updates
  • + Plugin system
  • - Small community
  • - Less momentum than peers

@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

Feature@hookstate/core@tanstack/react-query
ParadigmProxy storeAsync server cache
First-class TypeScript✓ Yes✓ Yes
Works outside ReactPartialPartial
Dedicated devtools✓ Yes✓ Yes
Built-in async / server stateManual✓ Yes
BoilerplateLowLow

@hookstate/core

The flexible, fast and extendable state management for React that is based on hooks and state usage tracking.

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

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

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