Class TemplateState<EventPayloadMapping, Context, States>Abstract
This is the template for the state.
This is a base template that you can extend to create a state.
Unlike the TemplateStateMachine, this class is abstract. You need to implement the specific methods that you need.
The core part off the state is the event reactions in which you would define how to handle each event in a state.
You can define an eventReactions object that maps only the events that you need. If this state does not need to handle a specific event, you can just not define it in the eventReactions object.
This is the template for the state.
This is a base template that you can extend to create a state. Unlike the TemplateStateMachine, this class is abstract. You need to implement the specific methods that you need. The core part off the state is the event reactions in which you would define how to handle each event in a state. You can define an eventReactions object that maps only the events that you need. If this state does not need to handle a specific event, you can just not define it in the eventReactions object.