@BhavyeMathur - tagging since we were discussing this
Instead of using TransitionMap = Dict[Type[NamedTuple], Type[State]], look into TransitionMap = Dict[Type[NamedTuple], State]. We can create a copy of the State when the state machine enters. This ensures that when a state is run, its default params aren't overridden.
@BhavyeMathur - tagging since we were discussing this
Instead of using
TransitionMap = Dict[Type[NamedTuple], Type[State]]
, look intoTransitionMap = Dict[Type[NamedTuple], State]
. We can create a copy of the State when the state machine enters. This ensures that when a state is run, its default params aren't overridden.