Can you expand on what you mean by this?
See https://en.wikipedia.org/wiki/UML_state_machine#Events
An event can have associated parameters, allowing the event instance to convey not only the occurrence of some interesting incident but also quantitative information regarding that occurrence. For example, the Keystroke event generated by pressing a key on a computer keyboard has associated parameters that convey the character scan code as well as the status of the Shift, Ctrl, and Alt keys.
The API is already set up to handle actions with payload/parameters:
machine.transition('green', {
type: 'TIMER', // the action is determined on the object's `type` prop
timestamp: Date.now()
});
When I add guard functions, they will be able to make use of action parameters.
I see, I must have missed that in the readme examples, perhaps having standalone docs would be useful also? Closing.
Most helpful comment
I see, I must have missed that in the readme examples, perhaps having standalone docs would be useful also? Closing.