File tree 1 file changed +3
-2
lines changed
1 file changed +3
-2
lines changed Original file line number Diff line number Diff line change @@ -70,6 +70,7 @@ export class TransitionHook {
70
70
let options = this . options ;
71
71
trace . traceHookInvocation ( this , this . transition , options ) ;
72
72
73
+ // A new transition started before this hook (from a previous transition) could be run.
73
74
if ( this . rejectIfSuperseded ( ) ) {
74
75
return Rejection . superseded ( options . current ( ) ) . toPromise ( ) ;
75
76
}
@@ -113,7 +114,7 @@ export class TransitionHook {
113
114
114
115
// Hook returned a promise
115
116
if ( isPromise ( result ) ) {
116
- // Wait for the promise, then reprocess the resolved value
117
+ // Wait for the promise, then reprocess the settled promise value
117
118
return result . then ( this . handleHookResult . bind ( this ) ) ;
118
119
}
119
120
@@ -128,7 +129,7 @@ export class TransitionHook {
128
129
const isTargetState = is ( TargetState ) ;
129
130
// hook returned a TargetState
130
131
if ( isTargetState ( result ) ) {
131
- // Halt the current Transition and start a redirected Transition ( to the TargetState) .
132
+ // Halt the current Transition and redirect (a new Transition) to the TargetState.
132
133
return Rejection . redirected ( result ) . toPromise ( ) ;
133
134
}
134
135
}
You can’t perform that action at this time.
0 commit comments