Live Updates

Push cell changes in real time with updateData.

Update a cell

Provide getRowId, then call updateData with rowId (preferred) or rowIndex into your source rows array. Set cellUpdateFlash to highlight the cell when it changes.

React TSX
const tableRef = useRef(null);
<SimpleTable
ref={tableRef}
columns={columns}
rows={rows}
getRowId={({ row }) => row.id}
cellUpdateFlash
/>
// Update the price cell on the row with this id.
tableRef.current?.updateData({
accessor: "price",
rowId: targetId,
newValue: 29.99,
});

Charts

Chart columns accept array values the same way — update the series with updateData. See Chart Columns. For the full table API, see Programmatic Control.

Example

Prices, stock, and chart series update on a timer. Use Code or StackBlitz for the full example.

Props

Live Update Configuration

PropertyRequiredDescriptionExample
cellUpdateFlash
boolean
Optional
Flashes a cell when its value is updated via updateData.

updateData parameters

updateData

PropertyRequiredDescriptionExample
accessor
string
Required
Column accessor for the cell to update.
rowId
string | number
Optional
Stable row id from getRowId. Preferred. Wins when both rowId and rowIndex are passed.
rowIndex
number
Optional
Zero-based index into your source rows array (not sorted/visible order). Use when you don't have a rowId.
newValue
any
Required
New cell value.