What problem does it solve?
Many frontend applications suffer from unpredictable state updates, excessive re-renders, and scattered state logic across components; tanstack-store provides a lightweight, immutable reactive store that centralizes state, computed values, and side effects to make state predictable and performant.
Core Features & Use Cases
- Provides a minimal Store abstraction for immutable state, Derived for computed values, Effect for side effects, and batch for atomic updates to avoid redundant notifications.
- Framework adapters enable seamless integration with React, Vue, Solid, Angular, and Svelte through hooks or injectables and support selector-based subscriptions and shallow equality optimizations.
- Use case examples include building performant counters and form state, composing filter->sort->paginate derived pipelines for lists, and mounting effects for timers or external listeners with proper cleanup.
Quick Start
Create a module-level Store, mount any Derived or Effect instances, and subscribe from your UI using the adapter hook (for example useStore in React) while updating state via setState.