File: derivedoptions.md | Updated: 11/15/2025
Search...
+ K
Auto
Docs Examples GitHub Contributors
Docs Examples GitHub Contributors
Docs Examples GitHub Contributors
Docs Examples Github Contributors
Docs Examples Github Contributors
Docs Examples Github Contributors
Docs Examples Github Contributors
Docs Examples Github Contributors
Maintainers Partners Support Learn StatsBETA Discord Merch Blog GitHub Ethos Brand Guide
Documentation
Framework
React
Version
Latest
Search...
+ K
Menu
Getting Started
API Reference
Examples
Framework
React
Version
Latest
Menu
Getting Started
API Reference
Examples
On this page
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
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
DerivedFnProps <TArr>
TState
ts
optional onSubscribe: (listener, derived) => () => void;
optional onSubscribe: (listener, derived) => () => void;
Defined in: derived.ts:49
#### Parameters ##### listener
Listener<TState>
Derived <TState>
Function
void
ts
optional onUpdate: () => void;
optional onUpdate: () => void;
Defined in: derived.ts:53
void
