-
-
Notifications
You must be signed in to change notification settings - Fork 4.2k
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
Update current route in willChangeRoute during an intermediate transition #19450
Conversation
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.
We chatted a little bit about this in discord this afternoon, I think the thing we decided was:
- Update
router_js
to add anisIntermediateTransition
to theInternalTransition
base class - Once landed + released, update EmberRouter's
routeWillChange
to detect that value and setthis.currentRoute
to that transitions.to
value - Add some inline comments explaining why 😛
@@ -548,7 +548,7 @@ class EmberRouter extends EmberObject { | |||
|
|||
intermediateTransitionTo(name: string, ...args: any[]) { | |||
this._routerMicrolib.intermediateTransitionTo(name, ...args); | |||
|
|||
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.
some odd whitespace here
Will need tildeio/router.js#321 and a then router bump |
9decf9d
to
222e5ad
Compare
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.
Nice work! Thanks for picking this up!
Updated to follow @rwjblue comment.
Fixes #19449