OptionalonOptionalonCalled at function leave / return breakpoint.
Must be declared as an object method, for example:
onLeave(ctx) { ... }
Do not use arrow functions here.
OptionalonCalled when a step is executed.
previousStep contains data captured from the leave step that requested
the follow.
Must be declared as an object method, for example:
onReturnFollowed(ctx, previousStep) { ... }
Do not use arrow functions here.
OptionalonCalled after followReturn() when a continuation is found.
previousStep contains data captured from the leave step that requested
the follow.
Must be declared as an object method, for example:
onStep(ctx, previousStep) { ... }
Do not use arrow functions here.
Called at function entry.
Must be declared as an object method, for example:
onEnter(ctx) { ... }Do not use arrow functions here.