TinyBase logoTinyBase

RowIdsListener

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

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

A reference to the Store that changed.

tableIdId

The Id of the Table that changed.

getIdChangesGetIdChanges | undefined

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

returnsvoid

This has no return value.

A RowIdsListener is provided when using the addRowIdsListener method. See that method for specific examples.

When called, a RowIdsListener is given a reference to the Store, and the Id of the Table whose Row Ids changed.

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