Function: useLiveUpdates()
useLiveUpdates<
TRow>(dataSource,initialData,getRowId,options?):UseLiveUpdatesReturn<TRow>
Defined in: src/data/use-live-updates.ts:30
Hook that subscribes to live data changes and reconciles them into the grid state.
- Subscribes to
dataSource.subscribe()on mount. - Reconciles add/update/delete events immediately.
- Queues events while the user is editing; applies them when editing ends.
- Signals refresh-needed for full reload events.
Type Parameters
TRow
TRow
Parameters
dataSource
DataSource<TRow>
initialData
TRow[]
getRowId
(row) => string
options?
UseLiveUpdatesOptions<TRow> = {}
Returns
UseLiveUpdatesReturn<TRow>