TanStack

table_publishExternalState

ts
function table_publishExternalState<TFeatures, TData>(
   table,
   state,
   compare?): void;

Defined in: core/table/coreTablesFeature.utils.ts:73

Publishes captured controlled state after a host framework commits.

Render-phase adapters stage options without synchronizing base atoms, then pass the state captured by the committed render here. The commit signal also invalidates ownership changes when no base atom was written.

Type Parameters

TFeatures

TFeatures extends TableFeatures

TData

TData extends RowData

Parameters

table

Table_Internal<TFeatures, TData>

state

| Partial<TableState<TFeatures>> | null

compare?

(currentState, externalState) => boolean

Returns

void