-
Notifications
You must be signed in to change notification settings - Fork 159
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Simplify TransitionState resolution system. #306
Conversation
e83d0f9
to
2644d95
Compare
Note: I confirmed that Ember's test suite passes with these changes (when linked locally). |
2644d95
to
bc0ef9f
Compare
rebased on top of master + tested |
lib/router/transition-state.ts
Outdated
// We distinguish between errors that occurred | ||
// during resolution (e.g. before"Model/model/afterModel), | ||
// and aborts due to a rejecting promise from shouldContinue(). | ||
wasAborted = true; | ||
return Promise.reject(reason); | ||
}, currentState.promiseLabel('Handle abort')); | ||
throw new Error('Transition aborted'); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
given e83c782#r518934850 is this else unreachable?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
guess this is ultimately removed, so it doesn't matter.
@stefanpenner I was following the work here and noticed some changes that might be related to this pull request: Do you think the issue is in |
Continuation
system (usetransition.isAborted
directly)