-
-
Save imrvelj/51f16df0d6a66153f36fa94d0039f033 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
When returned from a TransitionHookFn or TransitionStateHookFn, these values alter the running Transition: | |
False: the transition will be cancelled. | |
TargetState: the transition will be redirected to the new target state. | |
Promise: the transition will wait for the promise to resolve or reject. (see below) | |
If the promise is rejected (or resolves to false), the transition will be cancelled | |
If the promise resolves to a TargetState, the transition will be redirected | |
If the promise resolves to anything else, the transition will resume | |
Anything else: the transition will resume |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment