You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Passing along the transition would allow the activate hook to know if the leaf route was activated (i.e. if this.fullRouteName === transition.targetName).
I'm not sure if this is an oversight or not, but it did not seem significant enough to file a feature request / RFC.
The text was updated successfully, but these errors were encountered:
mehulkar
changed the title
[Bug] Bug report
[Bug] activate hook doesn't receive transition as an argument
Jun 20, 2020
The
activate
hook is called by the privateenter
method:https://github.com/emberjs/ember.js/blob/v3.20.0-beta.2/packages/@ember/-internals/routing/lib/system/route.ts#L380-L384
which is called by the underlying router.js library
https://github.com/tildeio/router.js/blob/v6.2.5/lib/router/router.ts#L520
Passing along the
transition
would allow the activate hook to know if the leaf route was activated (i.e. ifthis.fullRouteName === transition.targetName
).I'm not sure if this is an oversight or not, but it did not seem significant enough to file a feature request / RFC.
The text was updated successfully, but these errors were encountered: