TanStack
Store
v0
Auto
Framework
React
Version
Latest
Search...
+ K
Menu
Home
Frameworks
Contributors
GitHub
Discord
Getting Started
Overview
core
Installation
core
Quick Start
core
Quick Start
react
API Reference
JavaScript Reference
core
Classes / Store
core
Interfaces / Atom
core
Interfaces / AtomOptions
core
Interfaces / BaseAtom
core
Interfaces / InternalBaseAtom
core
Interfaces / InternalReadonlyAtom
core
Interfaces / InteropSubscribable
core
Interfaces / Readable
core
Interfaces / ReadonlyAtom
core
Interfaces / Subscribable
core
Interfaces / Subscription
core
Type Aliases / AnyAtom
core
Type Aliases / Observer
core
Type Aliases / Selection
core
Functions / batch
core
Functions / createAsyncAtom
core
Functions / createAtom
core
Functions / createStore
core
Functions / flush
core
Functions / toObserver
core
React Reference
react
Functions / useStore
react
Functions / shallow
react
Examples
Simple
react
TanStack
Store
v0
Auto
Search...
+ K
Framework
React
Version
Latest
Menu
Home
Frameworks
Contributors
GitHub
Discord
Getting Started
Overview
core
Installation
core
Quick Start
core
Quick Start
react
API Reference
JavaScript Reference
core
Classes / Store
core
Interfaces / Atom
core
Interfaces / AtomOptions
core
Interfaces / BaseAtom
core
Interfaces / InternalBaseAtom
core
Interfaces / InternalReadonlyAtom
core
Interfaces / InteropSubscribable
core
Interfaces / Readable
core
Interfaces / ReadonlyAtom
core
Interfaces / Subscribable
core
Interfaces / Subscription
core
Type Aliases / AnyAtom
core
Type Aliases / Observer
core
Type Aliases / Selection
core
Functions / batch
core
Functions / createAsyncAtom
core
Functions / createAtom
core
Functions / createStore
core
Functions / flush
core
Functions / toObserver
core
React Reference
react
Functions / useStore
react
Functions / shallow
react
Examples
Simple
react
On this page
Function: batch()
Parameters
fn
Returns
batch
Function: batch()
ts
function batch(fn): void;
function batch(fn): void;
Defined in:
batch.ts:4
Parameters
fn
() =>
void
Returns
void
Edit on GitHub
On this page
Function: batch()
Parameters
fn
Returns
Type Aliases / Selection
Functions / createAsyncAtom
Our Partners
Wow, it looks like you could be our first partner for this library!
Chat with us!
TanStack
Query
Powerful asynchronous state management, server-state utilities and data fetching. Fetch, cache, update, and wrangle all forms of async data in your TS/JS, React, Vue, Solid, Svelte & Angular applications all without touching any "global state"
Learn More
TanStack
Config
The build and publish utilities used by all of our projects. Use it if you dare!
Learn More