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
{{ message }}
This repository was archived by the owner on Sep 16, 2021. It is now read-only.
if you attempt to set() at new state, while in onenter() of the current state, it has not yet been added to the active states, so when it attempts to leave, it actually does nothing, and continues running its update (along with the new states update).
I'm wondering if onenter() should just be called after the other initialisation? don't see why that would be wrong but I haven't delved into any other code of how these run.
I also wonder why there is a list of active states? is there some way of running states concurrently?
(ah oops ignore that one, just saw the enable/disable, leaving to note that their logic also likely allows for these ghost states)
This bug took me a long time to find:
Do to the order states are initiated in:
if you attempt to
set()at new state, while inonenter()of the current state, it has not yet been added to the active states, so when it attempts to leave, it actually does nothing, and continues running its update (along with the new states update).I'm wondering if
onenter()should just be called after the other initialisation? don't see why that would be wrong but I haven't delved into any other code of how these run.I also wonder why there is a list of active states? is there some way of running states concurrently?
(ah oops ignore that one, just saw the enable/disable, leaving to note that their logic also likely allows for these ghost states)
Nico