useStore

Function: useStore()

Call Signature

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

Defined in: index.tsx:12

Type Parameters

TState

TSelected = NoInfer<TState>

Parameters

store

Store<TState, any>

selector?

(state) => TSelected

Returns

Accessor<TSelected>

Call Signature

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

Defined in: index.tsx:16

Type Parameters

TState

TSelected = NoInfer<TState>

Parameters

store

Derived<TState, any>

selector?

(state) => TSelected

Returns

Accessor<TSelected>