TinyBase logoTinyBase

TableIdsListener

The TableIdsListener type describes a function that is used to listen to changes to the Table Ids in the Store.

(
  store: Store,
  getIdChanges: GetIdChanges | undefined,
): void
TypeDescription
storeStore

A reference to the Store that changed.

getIdChangesGetIdChanges | undefined

A function that returns information about the Id changes, since v3.3.

returnsvoid

This has no return value.

A TableIdsListener is provided when using the addTableIdsListener method. See that method for specific examples.

When called, a TableIdsListener is given a reference to the Store.

Since v3.3, the listener is also passed a GetIdChanges function that can be used to query which Ids changed during the transaction.