-
Notifications
You must be signed in to change notification settings - Fork 3k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix(transition): Fail a transition if a new one has started while res…
…olves are loading Closes ui-router/react#3 Probably closes #2972
- Loading branch information
1 parent
2fcc920
commit bc87d9e
Showing
1 changed file
with
40 additions
and
28 deletions.
There are no files selected for viewing
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
This early exit was causing the check to
isSuperseded
to get skipped.Resolves are implemented as a hook. when the resolve completed, the hook returns undefined (which means to continue processing the transition).
Since resolve is the last hook before
onFinish
, there were no more checks forisSuperseded
.This commit makes all hook results always check
isSuperseded