TinyBase logoTinyBase


The TablesListener type describes a function that is used to listen to changes to the tabular part of the Store.

  store: Store,
  getCellChange: GetCellChange | undefined,
): void

A reference to the Store that changed.

getCellChangeGetCellChange | undefined

A function that returns information about any Cell's changes.


This has no return value.

A TablesListener is provided when using the addTablesListener method. See that method for specific examples.

When called, a TablesListener is given a reference to the Store and a GetCellChange function that can be used to query Cell values before and after the current transaction.

Note that if the listener was manually forced to be called (with the callListener method rather than due to a real change in the Store), the GetCellChange function will not be present.