TanStack

SubscribePropsWithStore

Interface: SubscribePropsWithStore<TFeatures, TSelected>

Defined in: types.ts:113

Subscribe to table.store (full table state). The selector receives the full TableState.

Type Parameters

TFeatures

TFeatures extends TableFeatures

TSelected

TSelected

Properties

children

ts
children:
  | SubscribeStaticChild
  | (state) => unknown;

Defined in: types.ts:126


selector()

ts
selector: (state) => TSelected;

Defined in: types.ts:125

Select from full table state. Re-renders when the selected value changes (shallow compare).

Required in store mode so you never accidentally subscribe to the whole store without an explicit projection.

Parameters

state

TableState<TFeatures>

Returns

TSelected


source

ts
source: SubscribeSource<ExtractFeatureMapTypes<TFeatures, TableState_FeatureMap>>;

Defined in: types.ts:117