TinyBase logoTinyBase

TransactionListener

The TransactionListener type describes a function that is used to listen to the completion of a transaction for the Store.

(store: Store): void
TypeDescription
storeStore

A reference to the Store that is completing a transaction.

returnsvoid

This has no return value.

A TransactionListener is provided when using the addWillFinishTransactionListener and addDidFinishTransactionListener methods. See those methods for specific examples.

Since v5.0, this listener is called with no arguments other than the Store. You can use the getTransactionChanges method and getTransactionLog method of the Store directly to get information about the changes made within the transaction.

Since

v1.0.0