transitions
transitions copied to clipboard
State changes in a hierarchical model don't update the state on the nested component models
Suppose I have a hierarchical state machine and I transition into a nested state (suppose caffeinated, which is defined as its own model). The state on the hierarchical state machine correctly changes to caffeinated_dithering
, but the state on the nested machine does not change to dithering
; it remains at whatever the initial state was.
Is there a way to force the nested model's state to change? I considered using on_enter
in the outer model, but then realized that won't work because that transition already has an on_enter
defined (which it correctly copies from the nested model).
Perhaps this is a feature request rather than a bug. I'm treating it as a bug because it violates the principle of least surprise. I expect the nested model's state to change when the outer model transitions between states that originate in the nested model.