Data & State Management
Query gives server state a cache and lifecycle, DB turns synced API data into live collections, Store keeps local state tiny and reactive, and AI makes provider work feel typed instead of vendor-shaped.
Query
freshness, retries, invalidation
DB
live queries, optimistic writes
Store
selectors, derived state, adapters
AI
providers, tools, AG-UI streams
Equal parts of the stack
TanStack
Use Query when the data lives somewhere else and needs freshness, retries, dedupe, background refetching, mutation lifecycle, and targeted invalidation without becoming hand-written state machinery.
TanStack
Use DB when the UI wants local-first reads, live query results, optimistic mutations, and a collection model that can reconcile with an API.
TanStack
Use Store when state is already in the client and the winning move is a tiny reactive primitive with adapters instead of another app framework.
TanStack
Use AI when providers, tools, structured output, streams, AG-UI events, and model differences should be represented in clean TypeScript instead of leaking through the app.
From the team
Solid 2.0 Beta Support in TanStack Router, Start, and Query
TanStack Router, Start, and Query now support the Solid 2.0 beta, so you can try Solid's next major release in real applications today.
Announcing TanStack Query v5
After 91 alpha releases, 35 betas, and 16 release candidates, TanStack Query v5.0.0 is finally here — smaller, better, and more intuitive than ever.
Announcing TanStack Query v4
The next version of TanStack Query is here. The rebranding and monorepo restructuring finally allows us to bring the joy of react-query to other frameworks like Vue, Svelte, and Solid.
TanStack DB 0.6 Now Includes Persistence, Offline Support, and Hierarchical Data
TanStack DB 0.6 adds SQLite-backed persistence across runtimes, hierarchical includes for projecting normalized data into UI-shaped trees, reactive effects, virtual props for sync state, and more.