TinyBase logoTinyBase β

GetValueChange

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

(valueId: Id): ValueChange
TypeDescription
valueIdId

The Id of the Value to inspect.

returnsValueChange

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

Since

v1.0.0