-
-
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
[DOC release] Add note about router service event and property update… #18738
Conversation
I'm not entirely sure if it should be documented as public for exact timing order. In fact I would like to deprecate |
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.
Overall, I think this is great! Thanks for working on it!
The exact timing to fire `routeDidChange` is after the Route's | ||
[didTransition](/ember/release/classes/Route/events/didTransition?anchor=didTransition) | ||
action fired. |
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.
I think that it is good to explicitly state this, but I'd prefer to tweak the verbiage here a bit. Maybe something:
`routeDidChange` will be called after any `Route`'s [didTransition](/ember/release/classes/Route/events/didTransition?anchor=didTransition) action has been fired.
This property is updated after Route's [didTransition](/ember/release/classes/Route/events/didTransition?anchor=didTransition) | ||
action and before `routeDidChange` being fired. |
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.
FWIW, I would actually prefer to change these to actually be based on routeDidChange
.
Not sure I agree here. While I do much prefer to encourage usage of |
Forgot to mention when I said I would like to deprecate But I think you are right at a better solution may be to have something to determine if it was the target of the transition or if it was above or below the "pivot point". |
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.
Thank you!
… timing
Also adding a bunch of hook/event assertions in tests to clearly state the supported timing order.
Related #18665