Skip to content

Batch Live Row Updates

Choose Receive row updates. One flush removes Notebook, updates Desk lamp, and adds Pen set.

Register LiveRowUpdatesPlugin on a grid with a local main row source. Configure grid.liveRowUpdates = { getRowId: (row) => row.id, waitMs: 16 } before mounting.

const applied = await updates.enqueue({
remove: ['notebook'],
update: [{ id: 'lamp', changes: { status: 'Ready' } }],
add: [{ id: 'pens', item: 'Pen set', status: 'Open' }],
});

Queue multiple transactions without awaiting each call to coalesce them into one source update. Use flush() when you need to wait for the current batch immediately. Each transaction processes removals, patches, and additions in that order. Updates and removals for unknown IDs have no effect. Duplicate IDs or changes to an ID reject the queued batch.

Where the new view still contains their rows, the plugin restores the focused cell, checkbox selections, and scroll anchor by ID. A cell range is restored when its rows remain contiguous in the same order. A grid-owned remote source or an active editor returns false, so the caller can keep the update and retry later.