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.
getTransactionChanges
The getTransactionChanges
method returns the net meaningful changes that have been made to a Store
during a transaction.
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.
getTransactionMergeableChanges
The getTransactionMergeableChanges
method returns the net meaningful changes that have been made to a MergeableStore
during a transaction.
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.
transaction
The transaction
method takes a function that makes multiple mutations to the Store
, buffering all calls to the relevant listeners until it completes.