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

usestore.md

64 lines956 Bytes

Function: useStore()

Call Signature

function useStore<TState, TSelected>(store, selector?): TSelected

Defined in: index.ts:11

Type Parameters

• TState

• TSelected = NoInfer<TState>

Parameters

store

Store<TState, any>

selector?

(state) => TSelected

Returns

TSelected

Call Signature

function useStore<TState, TSelected>(store, selector?): TSelected

Defined in: index.ts:15

Type Parameters

• TState

• TSelected = NoInfer<TState>

Parameters

store

Derived<TState, any>

selector?

(state) => TSelected

Returns

TSelected