Skip to content

Function: reconcileChanges()

reconcileChanges<TRow>(rows, event, getRowId, getParentId?): TRow[] | null

Defined in: src/data/reconcile-changes.ts:13

Reconciles a DataChangeEvent into the current row array.

Returns the new row array, or null if a full reload is needed (refresh event).

Type Parameters

TRow

TRow

Parameters

rows

TRow[]

Current row data

event

DataChangeEvent<TRow>

The change event from the data source

getRowId

(row) => string

Function to extract row id

getParentId?

(row) => string | null | undefined

Optional function to extract parent id (for cascade delete)

Returns

TRow[] | null