Hook Criterion used to match a transition.
A Glob string that matches the name of a state.
Or, a function with the signature function(state) { return matches; }
which should return a boolean to indicate if a state matches.
Or, true
to match anything
The return value of a TransitionHookFn or TransitionStateHookFn
When returned from a TransitionHookFn or TransitionStateHookFn, these values alter the running Transition:
false
: the transition will be cancelled.Promise
: the transition will wait for the promise to resolve or rejectfalse
), the transition will be cancelledA predicate type which takes a State and returns a boolean
A factory for a sort function for HookTuples.
A factory for a sort function for HookTuples.
The sort function first compares the PathNode depth (how deep in the state tree a node is), then compares the EventHook priority.
a boolean, when true, reverses the sort order for the node depth
a tuple sort function
The default Transition options.
Include this object when applying custom defaults: let reloadOpts = { reload: true, notify: true } let options = defaults(theirOpts, customDefaults, defaultOptions);
Generated using TypeDoc
This module contains APIs related to a Transition.
See Transition, $transitions