This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
const onFormUpdate = { target: "Editing", actions: "onUpdate" }; | |
/** | |
* This is the definition of the StateMachine. | |
* This machine defines a generic behavior for a form feature: | |
* - events (update, submitting, result of the submit) | |
* - transitions | |
* - guards/actions/services to call WITHOUT defining them | |
* | |
* Note that the "context" is set as 'any' because the machine itself does not |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
const onFormUpdate = { target: "Editing", actions: "onUpdate" }; | |
/** | |
* This is the definition of the StateMachine. | |
* This machine defines a generic behavior for a form feature: | |
* - events (update, submitting, result of the submit) | |
* - transitions | |
* - guards/actions/services to call WITHOUT defining them | |
* | |
* Note that the "context" is set as 'any' because the machine itself does not |