šŸ“„ tanstack/store/latest/docs/reference/interfaces/derivedoptions

File: derivedoptions.md | Updated: 11/15/2025

Source: https://tanstack.com/store/latest/docs/reference/interfaces/derivedoptions



TanStack

Store v0v0

Search...

+ K

Auto

Log In

TanStack StartRC

Docs Examples GitHub Contributors

TanStack Router

Docs Examples GitHub Contributors

TanStack Query

Docs Examples GitHub Contributors

TanStack Table

Docs Examples Github Contributors

TanStack Formnew

Docs Examples Github Contributors

TanStack DBbeta

Docs Github Contributors

TanStack Virtual

Docs Examples Github Contributors

TanStack Paceralpha

Docs Examples Github Contributors

TanStack Storealpha

Docs Examples Github Contributors

TanStack Devtoolsalpha

Docs Github Contributors

More Libraries

Maintainers Partners Support Learn StatsBETA Discord Merch Blog GitHub Ethos Brand Guide

Documentation

Framework

React logo

React

Version

Latest

Search...

+ K

Menu

Getting Started

API Reference

Examples

Framework

React logo

React

Version

Latest

Menu

Getting Started

API Reference

Examples

On this page

DerivedOptions

Copy Markdown

Interface: DerivedOptions<TState, TArr>
=======================================

Defined in: derived.ts:45

Type Parameters
---------------

• TState

• TArr extends ReadonlyArray< | Derived <any> | Store <any>> = ReadonlyArray<any>

Properties
----------
### deps

ts

deps: TArr;


deps: TArr;

Defined in: derived.ts:54


### fn()

ts

fn: (props) => TState;


fn: (props) => TState;

Defined in: derived.ts:58

Values of the deps from before and after the current invocation of fn

#### Parameters ##### props

DerivedFnProps <TArr>

#### Returns

TState


### onSubscribe()?

ts

optional onSubscribe: (listener, derived) => () => void;


optional onSubscribe: (listener, derived) => () => void;

Defined in: derived.ts:49

#### Parameters ##### listener

Listener<TState>

##### derived

Derived <TState>

#### Returns

Function

##### Returns

void


### onUpdate()?

ts

optional onUpdate: () => void;


optional onUpdate: () => void;

Defined in: derived.ts:53

#### Returns

void

Edit on GitHub

Interfaces / StoreOptions

React Reference

Partners Become a Partner

Code RabbitCode Rabbit CloudflareCloudflare AG GridAG Grid NetlifyNetlify NeonNeon WorkOSWorkOS ClerkClerk ConvexConvex ElectricElectric SentrySentry PrismaPrisma StrapiStrapi UnkeyUnkey

scarf analytics