Life Cycle
Mounting Cycle
1. Setup
static async setup(selector) {
// Register a history for tracking applied actions
this.engine.history('myaction');
// Register state variables
this.engine.state({
myActionActive: false
});
}2. Bind
3. Init
Statement Matching
matchString
matchObject
Application Cycle
1. Will Apply
2. Apply
3. Did Apply
Revert Cycle
1. Will Revert
2. Revert
3. Did Revert
Flow Control Methods
shouldProceed
willProceed
shouldRollback
willRollback
Event Methods
onStart
onLoad
onSave
reset
Hook Methods
beforeRun / afterRun
beforeRevert / afterRevert
Instance Methods
interrupt
Helper Methods
Complete Life Cycle Diagram
Related
Last updated
Was this helpful?