TanStack
Store v0v0
Log In
HomeDocsGitHub
HomeDocsGitHub
HomeDocsGitHub
HomeDocsGitHub
HomeDocsGitHub
HomeDocsGitHub
HomeDocsGitHub
HomeDocsGitHub
HomeDocsGitHub
HomeDocsGitHub
HomeDocsGitHub
More Libraries
FeedBeta
Maintainers
Partners
Showcase
Blog
LearnNEW
Support
Stats
Discord
Merch
GitHub
Ethos
Tenets
Brand Guide
Docs
Code RabbitCode Rabbit
CloudflareCloudflare
AG GridAG Grid
NetlifyNetlify
NeonNeon
WorkOSWorkOS
ClerkClerk
ConvexConvex
ElectricElectric
SentrySentry
PrismaPrisma
StrapiStrapi
UnkeyUnkey
UI.dev
Code RabbitCode Rabbit
CloudflareCloudflare
AG GridAG Grid
NetlifyNetlify
NeonNeon
WorkOSWorkOS
ClerkClerk
ConvexConvex
ElectricElectric
SentrySentry
PrismaPrisma
StrapiStrapi
UnkeyUnkey
UI.dev
Menu
  • Home
  • Frameworks
  • Contributors
  • 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
Menu
  • Home
  • Frameworks
  • Contributors
  • 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
Learn about TanStack AdsHide Ads

AtomOptions

Interface: AtomOptions<T>

Defined in: types.ts:47

Type Parameters

T

T

Properties

compare()?

ts
optional compare: (prev, next) => boolean;
optional compare: (prev, next) => boolean;

Defined in: types.ts:48

Parameters

prev

T

next

T

Returns

boolean

Edit on GitHub
NextHome

On this page

  • Interface: AtomOptions
  • Type Parameters
  • T
  • Properties
  • compare()?
  • Parameters
  • prev
  • next
  • Returns
Learn about TanStack AdsHide Ads
PartnersBecome a Partner
Code RabbitCode Rabbit
CloudflareCloudflare
AG GridAG Grid
NetlifyNetlify
NeonNeon
WorkOSWorkOS
ClerkClerk
ConvexConvex
ElectricElectric
SentrySentry
PrismaPrisma
StrapiStrapi
UnkeyUnkey
Learn about TanStack AdsHide Ads