Optionalentering
A [[HookMatchCriterion]] to match any state that would be entering
Optionalexiting
A [[HookMatchCriterion]] to match any state that would be exiting
Optionalfrom
A [[HookMatchCriterion]] to match the original (from) state
Optionalretained
A [[HookMatchCriterion]] to match any state that would be retained
Optionalto
A [[HookMatchCriterion]] to match the destination state
This object is used to configure whether or not a Transition Hook is invoked for a particular transition, based on the Transition's "to state" and "from state".
Each property (
to,from,exiting,retained, andentering) can be a state name string, a boolean, or a function that takes a state and returns a boolean (see [[HookMatchCriterion]])All properties are optional. If any property is omitted, it is replaced with the value
true, and always matches. To match any transition, use an empty criteria object{}.Example:
Example:
Example:
Example: