TinyBase logoTinyBase

ValueIdsListener

The ValueIdsListener type describes a function that is used to listen to changes to the Value Ids in a 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 ValueIdsListener is provided when using the addValueIdsListener method. See that method for specific examples.

When called, a ValueIdsListener 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.

A ValueIdsListener is provided when using the addValueIdsListener method. See that method for specific examples.

When called, a ValueIdsListener 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.