TanStack
Store v0v0
Log In
StartRC
StartRC
Router
Router
Query
Query
Table
Table
DBbeta
DBbeta
AIalpha
AIalpha
Formnew
Formnew
Virtual
Virtual
Pacerbeta
Pacerbeta
Hotkeysalpha
Hotkeysalpha
Storealpha
Storealpha
Devtoolsalpha
Devtoolsalpha
CLIalpha
CLIalpha
Intentalpha
Intentalpha
More Libraries
More Libraries
BuilderAlpha
BuilderAlpha
Blog
Blog
Maintainers
Maintainers
Partners
Partners
Showcase
Showcase
LearnNEW
LearnNEW
Stats
Stats
YouTube
YouTube
Discord
Discord
Merch
Merch
Support
Support
GitHub
GitHub
Ethos
Ethos
Tenets
Tenets
Brand Guide
Brand Guide
Docs
CloudflareCloudflare
RailwayRailway
CodeRabbitCodeRabbit
SerpAPISerpAPI
AG GridAG Grid
NetlifyNetlify
OpenRouterOpenRouter
ClerkClerk
WorkOSWorkOS
SentrySentry
ElectricElectric
UnkeyUnkey
PrismaPrisma
CloudflareCloudflare
RailwayRailway
CodeRabbitCodeRabbit
SerpAPISerpAPI
AG GridAG Grid
NetlifyNetlify
OpenRouterOpenRouter
ClerkClerk
WorkOSWorkOS
SentrySentry
ElectricElectric
UnkeyUnkey
PrismaPrisma
Menu
  • Home
  • Blog
  • Frameworks
  • Contributors
  • NPM Stats
  • GitHub
  • YouTube
  • 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
Menu
  • Home
  • Blog
  • Frameworks
  • Contributors
  • NPM Stats
  • GitHub
  • YouTube
  • 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
AI/LLM: This documentation page is available in plain markdown format at/store/v0/docs/framework/react/reference/interfaces/UseSelectorOptions.md
Store API Reference

UseSelectorOptions

Interface: UseSelectorOptions<TSelected>#

Defined in: packages/react-store/src/useSelector.ts:4

Type Parameters#

TSelected#

TSelected

Properties#

compare()?#

ts
optional compare: (a, b) => boolean;
optional compare: (a, b) => boolean;

Defined in: packages/react-store/src/useSelector.ts:5

Parameters#

a#

TSelected

b#

TSelected

Returns#

boolean

Edit on GitHub
PrevioususeStore (deprecated)
NextSimple

On this page

  • Interface: UseSelectorOptions
  • Type Parameters
  • TSelected
  • Properties
  • compare()?
  • Parameters
  • a
  • b
  • Returns
Blog
@Tan_Stack on X.com
@TannerLinsley on X.com
GitHub
YouTube
Nozzle.io - Keyword Rank Tracker
Ethos
Tenets
Privacy Policy
Terms of Service
© 2026 TanStack LLC
PartnersBecome a Partner
Gold
CodeRabbitCodeRabbit
CloudflareCloudflare
RailwayRailway
Silver
SerpAPISerpAPI
OpenRouterOpenRouter
AG GridAG Grid
WorkOSWorkOS
NetlifyNetlify
ClerkClerk
Bronze
UnkeyUnkey
PrismaPrisma
ElectricElectric
SentrySentry
TanStack Start

Full-stack Framework powered by TanStack Router for React and Solid

Explore Start →
TanStack Router

Type-safe Routing for React and Solid applications

Explore Router →
TanStack OSS
    Latest Posts
    TanStack Start Adds First-Class Rsbuild SupportJun 2, 2026Introducing Experimental Workflows and Orchestrators in TanStack AIMay 28, 2026Chat UIs Are Lists Until They Aren'tMay 25, 2026