TinyBase logoTinyBase

ValueChange

The ValueChange type describes a Value's changes during a transaction.

[changed: boolean, oldValue: ValueOrUndefined, newValue: ValueOrUndefined]

This is returned by the GetValueChange function that is provided to every listener when called. This array contains 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.