TinyBase logoTinyBase

GetResultCellChange

The GetResultCellChange type describes a function that returns information about any ResultCell's changes during a transaction.

(
  tableId: Id,
  rowId: Id,
  cellId: Id,
): ResultCellChange
TypeDescription
tableIdId

The Id of the ResultTable to inspect.

rowIdId

The Id of the ResultRow to inspect.

cellIdId

The Id of the ResultCell to inspect.

returnsResultCellChange

A ResultCellChange array containing information about the ResultCell's changes.

A GetResultCellChange function is provided to every listener when called due the Store changing. The listener can then fetch the previous value of a ResultCell before the current transaction, the new value after it, and a convenience flag that indicates that the value has changed.