Transaction

STM transaction class holds a list of actions constituting a transaction.

A transaction can be undone and redone. Upon undo all the actions being held are undone in reverse order. Upon redo all the actions being held are redone in forward order.

Configs

1
title: String

Transaction title

Properties

2
length: Number

Gets transaction's actions queue length

Gets transaction's actions queue

Functions

4

Adds an action to the transaction.

ParameterTypeDescription
actionActionBase | Object

Merges all update actions into one per model, keeping the oldest and the newest values

Redoes actions held

Undoes actions held