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
|`'machine.prepare_event'`|`source`| executed *once* before individual transitions are processed |
676
+
|`'transition.prepare'`|`source`| executed as soon as the transition starts |
677
+
|`'transition.conditions'`|`source`| conditions *may* fail and halt the transition |
678
+
|`'transition.unless'`|`source`| conditions *may* fail and halt the transition |
679
+
|`'machine.before_state_change'`|`source`| default callbacks declared on model |
680
+
|`'transition.before'`|`source`||
681
+
|`'state.on_exit'`|`source`| callbacks declared on the source state |
682
+
|`<STATE CHANGE>`|||
683
+
|`'state.on_enter'`|`destination`| callbacks declared on the destination state |
684
+
|`'transition.after'`|`destination`||
685
+
|`'machine.after_state_change'`|`destination`| default callbacks declared on model |
686
+
|`'machine.finalize_event'`|`source/destination`| callbacks will be executed even if no transition took place or an exception has been raised |
687
687
688
688
### <aname="passing-data"></a>Passing data
689
689
Sometimes you need to pass the callback functions registered at machine initialization some data that reflects the model's current state. Transitions allows you to do this in two different ways.
0 commit comments