TinyBase logoTinyBase

GetCellChange

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

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

The Id of the Table to inspect.

rowIdId

The Id of the Row to inspect.

cellIdId

The Id of the Cell to inspect.

returnsCellChange

A CellChange array containing information about the Cell's changes.

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