TanStackForm v0
Auto

useStore

Function: useStore()

Call Signature

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

Defined in: node_modules/.pnpm/@tanstack+react-store@0.7.0_react-dom@19.0.0_react@19.0.0__react@19.0.0/node_modules/@tanstack/react-store/dist/esm/index.d.ts:7

Type Parameters

TState

TSelected = NoInfer<TState>

Parameters

store

Store<TState, any>

selector?

(state) => TSelected

Returns

TSelected

Call Signature

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

Defined in: node_modules/.pnpm/@tanstack+react-store@0.7.0_react-dom@19.0.0_react@19.0.0__react@19.0.0/node_modules/@tanstack/react-store/dist/esm/index.d.ts:8

Type Parameters

TState

TSelected = NoInfer<TState>

Parameters

store

Derived<TState, any>

selector?

(state) => TSelected

Returns

TSelected

Subscribe to Bytes

Your weekly dose of JavaScript news. Delivered every Monday to over 100,000 devs, for free.

Bytes

No spam. Unsubscribe at any time.