What problem does it solve?
TanStack Store eliminates the repetitive work of wiring up reactive application state by giving you an immutable, framework-adaptable store that stays consistent across React, Vue, Solid, Angular, and Svelte.
Core Features & Use Cases
- Immutable reactive store: Manage state with
Store, update it via setState, and notify subscribers predictably.
- Computed values with Derived: Build
Derived graphs for filtering, sorting, chaining transformations, and deriving UI-ready values.
- Side effects with Effect + batching: Run side effects with
Effect (including cleanup) and group related state updates with batch to reduce intermediate renders.
- Framework adapters: Use
@tanstack/react-store (and equivalent adapters) to connect the store to component lifecycles efficiently.
Example use case: Maintain a global data store for a table view, then derive filtered/sorted/paginated slices and connect them to UI components without duplicating state logic per framework.
Quick Start
Create a Store for your state, update it with setState, and subscribe from your UI using the appropriate TanStack framework adapter hook.