Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
apply current state update before changing states
Once a transition completes, we update the state without applying the advance to the currentState of the transition. This PR checks whether a transition is complete to invoke apply to the complete state before moving to the next state. Note: It could happen that the next state is actually the same one completed in the transition, so apply would be called twice on the same state. Conceptually it makes sense to treat it as two different things, since one is in the context of the transition and the other "apply" is in the context of the new state. But in terms of performance, this might not be the best solution. Diffs= da14cc814 apply current state update before changing states (#6538)
- Loading branch information