TinyBase logoTinyBase

Transaction methods

This is the collection of transaction methods within the MergeableStore interface. There are 6 transaction methods in total.

finishTransaction

The finishTransaction method allows you to explicitly finish a transaction that has made multiple mutations to the Store, triggering all calls to the relevant listeners.

Read more

getTransactionChanges

The getTransactionChanges method returns the net meaningful changes that have been made to a Store during a transaction.

Read more

getTransactionLog

The getTransactionLog method returns the changes that were made to a Store during a transaction in more detail, including invalid changes, and what previous values were.

Read more

getTransactionMergeableChanges

The getTransactionMergeableChanges method returns the net meaningful changes that have been made to a MergeableStore during a transaction.

Read more

startTransaction

The startTransaction method allows you to explicitly start a transaction that will make multiple mutations to the Store, buffering all calls to the relevant listeners until it completes when you call the finishTransaction method.

Read more

transaction

The transaction method takes a function that makes multiple mutations to the Store, buffering all calls to the relevant listeners until it completes.

Read more