I have an issue and some questions about the subStateMachine.
- In the
onXXXStartStateMachine apis, they are requiring a StateMachine instance, or a lambda returing such instance in the param. And it is impossible in the new FlowRedux2 api now, because we can only access to a StateMachineFactory instance.
The following are some questions about the design of subStateMachine.
- Is it possible to have a stop sign, either from the host state or the sub state, for the sub state machine, to stop and release the running sub state machine and release resources when met. Currently, it is hard to figure out if a sub state machine started by a one-shot action is correctly stopped.
- I wonder if the state mapper of sub state machine can be
suspend, or even map the sub state to an action for the host state machine. Or is this thought a violation of some principle?
I have an issue and some questions about the
subStateMachine.onXXXStartStateMachineapis, they are requiring aStateMachineinstance, or a lambda returing such instance in the param. And it is impossible in the new FlowRedux2 api now, because we can only access to a StateMachineFactory instance.The following are some questions about the design of
subStateMachine.suspend, or even map the sub state to an action for the host state machine. Or is this thought a violation of some principle?