TanStack
Store
v0
v0
Alpha
Try TanStack CLI
Search...
K
Auto
Log In
Start
RC
Start
RC
Router
Router
Query
Query
Table
Table
DB
beta
DB
beta
AI
alpha
AI
alpha
Form
new
Form
new
Virtual
Virtual
Pacer
beta
Pacer
beta
Hotkeys
alpha
Hotkeys
alpha
Store
alpha
Store
alpha
Devtools
alpha
Devtools
alpha
CLI
alpha
CLI
alpha
More Libraries
More Libraries
Builder
Alpha
Builder
Alpha
Feed
Beta
Feed
Beta
Maintainers
Maintainers
Partners
Partners
Showcase
Showcase
Blog
Blog
Learn
NEW
Learn
NEW
Support
Support
Stats
Stats
Discord
Discord
Merch
Merch
GitHub
GitHub
Ethos
Ethos
Tenets
Tenets
Brand Guide
Brand Guide
Docs
Partners
React
v0
Search...
K
Menu
Home
Frameworks
Contributors
NPM Stats
GitHub
Discord
Getting Started
Overview
Installation
Quick Start
Quick Start
API Reference
JavaScript Reference
Classes / Store
Interfaces / Atom
Interfaces / AtomOptions
Interfaces / BaseAtom
Interfaces / InternalBaseAtom
Interfaces / InternalReadonlyAtom
Interfaces / InteropSubscribable
Interfaces / Readable
Interfaces / ReadonlyAtom
Interfaces / Subscribable
Interfaces / Subscription
Type Aliases / AnyAtom
Type Aliases / Observer
Type Aliases / Selection
Functions / batch
Functions / createAsyncAtom
Functions / createAtom
Functions / createStore
Functions / flush
Functions / toObserver
React Reference
Functions / useStore
Functions / shallow
Examples
Simple
v0
React
v0
Menu
Home
Frameworks
Contributors
NPM Stats
GitHub
Discord
Getting Started
Overview
Installation
Quick Start
Quick Start
API Reference
JavaScript Reference
Classes / Store
Interfaces / Atom
Interfaces / AtomOptions
Interfaces / BaseAtom
Interfaces / InternalBaseAtom
Interfaces / InternalReadonlyAtom
Interfaces / InteropSubscribable
Interfaces / Readable
Interfaces / ReadonlyAtom
Interfaces / Subscribable
Interfaces / Subscription
Type Aliases / AnyAtom
Type Aliases / Observer
Type Aliases / Selection
Functions / batch
Functions / createAsyncAtom
Functions / createAtom
Functions / createStore
Functions / flush
Functions / toObserver
React Reference
Functions / useStore
Functions / shallow
Examples
Simple
AI/LLM: This documentation page is available in plain markdown format at/store/v0/docs/reference/index.md
Learn about TanStack Ads
Hide Ads
API Reference
On this page
@tanstack/store
Copy page
@tanstack/store
Classes
ReadonlyStore
Store
Interfaces
Atom
AtomOptions
BaseAtom
InternalBaseAtom
InternalReadonlyAtom
InteropSubscribable
Readable
ReadonlyAtom
Subscribable
Subscription
Type Aliases
AnyAtom
Observer
Selection
Functions
batch
createAsyncAtom
createAtom
createStore
flush
toObserver
Edit on GitHub
Previous
Quick Start
Next
Classes / Store
On this page
@tanstack/store
Classes
Interfaces
Type Aliases
Functions
Learn about TanStack Ads
Hide Ads
Partners
Become a Partner
Learn about TanStack Ads
Hide Ads