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
This allows users to control whether the machine considers a transition from the same state as a new transition or not (and re-triggering onEnter / onExit callbacks).
always: Always enter the state when a transition returns the state, regardless of whether the current state is already the same. This allows for mutable states.
notIdentical: Enter the state when a transition returns the state and if the current state is not identical to the new state (using identical for comparison).
notEqual: Enter the state when a transition returns the state and if the current state is not equal to the new state (using the == operator).
never: Prevent re-entering the state if a transition returns the same state as the current one. This allows for disabling the re-trigger of parent state onEnter / onExit callbacks.
The text was updated successfully, but these errors were encountered:
Introduce
ReEnterStatePolicy
object that lets users control state re-entering conditions:This allows users to control whether the machine considers a transition from the same state as a new transition or not (and re-triggering onEnter / onExit callbacks).
always: Always enter the state when a transition returns the state, regardless of whether the current state is already the same. This allows for mutable states.
notIdentical: Enter the state when a transition returns the state and if the current state is not identical to the new state (using identical for comparison).
notEqual: Enter the state when a transition returns the state and if the current state is not equal to the new state (using the == operator).
never: Prevent re-entering the state if a transition returns the same state as the current one. This allows for disabling the re-trigger of parent state onEnter / onExit callbacks.
The text was updated successfully, but these errors were encountered: