TanStack
Table API Reference

getInitialTableState

ts
function getInitialTableState<TFeatures>(features, initialState?): TableState<TFeatures>;

Defined in: core/table/constructTable.ts:18

Builds the initial table state from registered features and user initial state.

Each feature contributes its default state before user-provided initialState values are merged in.

Type Parameters

TFeatures

TFeatures extends TableFeatures

Parameters

features

TFeatures

initialState?

| Partial<TableState<TFeatures>> | undefined

Returns

TableState<TFeatures>