You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
It appears that, if an enclosing composite state does not have entry or exit actions of its own (on any arbitrary state, even if it's not actually visited), then inside its substates' entry and exit actions aren't called either.
Aha! This dodgy workaround also enables entry/exit actions on sub-states with history. This then allows me to save/restore wider application state when moving out of/in to the sub-state, and to encapsulate that logic within the sub-state itself. Thanks!
It appears that, if an enclosing composite state does not have entry or exit actions of its own (on any arbitrary state, even if it's not actually visited), then inside its substates' entry and exit actions aren't called either.
yields following output:
E.g. entry/exit actions on
a(a1)
andb(b1)
duringa -> b
transition are not called. Uncommenting (1) yields:Introducing dummy entry action on
c
enabled entry actions ona1
andb1
. Uncommenting (2) givesAnd uncommenting both enables all actions:
The text was updated successfully, but these errors were encountered: