Docs
CodeRabbit
Cloudflare
AG Grid
SerpAPI
Netlify
OpenRouter
WorkOS
Clerk
Electric
PowerSync
Sentry
Railway
Prisma
Strapi
Unkey
CodeRabbit
Cloudflare
AG Grid
SerpAPI
Netlify
OpenRouter
WorkOS
Clerk
Electric
PowerSync
Sentry
Railway
Prisma
Strapi
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>