Skip to content
Source
Sign inSign up
TanStack/store
Open History to see the last commit

injectstore.md

78 lines1.2 KB

Function: injectStore()

Call Signature

function injectStore<TState, TSelected>(
   store, 
   selector?, 
options?): Signal<TSelected>

Defined in: index.ts:19

Type Parameters

• TState

• TSelected = NoInfer<TState>

Parameters

store

Store<TState, any>

selector?

(state) => TSelected

options?

CreateSignalOptions<TSelected> & object

Returns

Signal<TSelected>

Call Signature

function injectStore<TState, TSelected>(
   store, 
   selector?, 
options?): Signal<TSelected>

Defined in: index.ts:24

Type Parameters

• TState

• TSelected = NoInfer<TState>

Parameters

store

Derived<TState, any>

selector?

(state) => TSelected

options?

CreateSignalOptions<TSelected> & object

Returns

Signal<TSelected>