Docs
Cloudflare
CodeRabbit
Railway
Netlify
Clerk
AG Grid
SerpAPI
OpenRouter
WorkOS
Prisma
Sentry
Electric
Unkey
Cloudflare
CodeRabbit
Railway
Netlify
Clerk
AG Grid
SerpAPI
OpenRouter
WorkOS
Prisma
Sentry
Electric
Unkey
Table API Reference
Column API Reference
Row API Reference
Cell API Reference
Header API Reference
Features API Reference
Static Functions API Reference
Legacy API Reference
Table API Reference

getInitialTableState

Function: getInitialTableState()

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

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

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>