TanStack
Store
v0
v0
Search...
K
Auto
Log In
TanStack
Start
RC
Docs
Examples
GitHub
Contributors
TanStack
Router
Docs
Examples
GitHub
Contributors
TanStack
Query
Docs
Examples
GitHub
Contributors
TanStack
Table
Docs
Examples
Github
Contributors
TanStack
DB
beta
Docs
Github
Contributors
TanStack
AI
alpha
Docs
Github
Contributors
TanStack
Form
new
Docs
Examples
Github
Contributors
TanStack
Virtual
Docs
Examples
Github
Contributors
TanStack
Pacer
beta
Docs
Examples
Github
Contributors
TanStack
Store
alpha
Docs
Examples
Github
Contributors
TanStack
Devtools
alpha
Docs
Github
Contributors
More Libraries
Feed
Beta
Maintainers
Partners
Blog
Learn
NEW
Support
Stats
Discord
Merch
GitHub
Ethos
Tenets
Brand Guide
Documentation
React
Latest
Search...
K
Menu
Home
Frameworks
Contributors
GitHub
Discord
Getting Started
Overview
Installation
Quick Start
Quick Start
API Reference
Core API Reference
React Hooks
Store API Reference
Store
ReadonlyStore
Atom
AtomOptions
BaseAtom
InternalBaseAtom
InternalReadonlyAtom
InteropSubscribable
Readable
ReadonlyAtom
StoreActionsApi
Subscribable
Subscription
AnyAtom
Observer
Selection
StoreAction
StoreActionMap
StoreActionsFactory
batch
createAsyncAtom
createAtom
createStore
flush
shallow
toObserver
createStoreContext
useCreateAtom
useCreateStore
useSelector
useSetValue
useAtom
useStoreActions
_useStore (experimental)
useStore (deprecated)
UseSelectorOptions
Examples
Simple
Atoms
Stores
Store Actions
Store Context
React
Latest
Menu
Home
Frameworks
Contributors
GitHub
Discord
Getting Started
Overview
Installation
Quick Start
Quick Start
API Reference
Core API Reference
React Hooks
Store API Reference
Store
ReadonlyStore
Atom
AtomOptions
BaseAtom
InternalBaseAtom
InternalReadonlyAtom
InteropSubscribable
Readable
ReadonlyAtom
StoreActionsApi
Subscribable
Subscription
AnyAtom
Observer
Selection
StoreAction
StoreActionMap
StoreActionsFactory
batch
createAsyncAtom
createAtom
createStore
flush
shallow
toObserver
createStoreContext
useCreateAtom
useCreateStore
useSelector
useSetValue
useAtom
useStoreActions
_useStore (experimental)
useStore (deprecated)
UseSelectorOptions
Examples
Simple
Atoms
Stores
Store Actions
Store Context
On this page
Function: shallow()
Type Parameters
T
Parameters
objA
objB
Returns
Learn about TanStack Ads
Hide Ads
Store API Reference
shallow
shallow
Copy page
Function: shallow()
ts
function shallow<T>(objA, objB): boolean;
function shallow<T>(objA, objB): boolean;
Defined in:
shallow.ts:1
Type Parameters
T
T
Parameters
objA
T
objB
T
Returns
boolean
Edit on GitHub
On this page
Function: shallow()
Type Parameters
T
Parameters
objA
objB
Returns
Learn about TanStack Ads
Hide Ads
flush
toObserver
Partners
Become a Partner
Learn about TanStack Ads
Hide Ads