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
In ember 2.15, route's model doesn't run when transitioning from a parent route.
For example:
If the app is currentnly, at /student and displays student list, selecting a student, transitions to student/<id>. The model hook in route for student/<id> is not run.
All other hooks run, in order of beforeModel => afterModel => setupController
This doesn't happen, when I directly load the route via hard refresh of student/<id>.
Previous to ember 2.15, hooks run in beforeModel => model => afterModel => setupController in all cases.
The text was updated successfully, but these errors were encountered:
We have a number of tests in this area that are not showing a regression so I suspect that what you are experiencing is situational or dependent on some other factors. Can you create a reproduction that shows the problem you are describing?
@rwjblue On more detailed debugging, the issue that we are seeing is a result of #15621. We are trying to pass the id param of the route, from a partial, which comes as undefined.
In ember 2.15, route's
model
doesn't run when transitioning from a parent route.For example:
If the app is currentnly, at
/student
and displays student list, selecting a student, transitions tostudent/<id>
. Themodel
hook in route forstudent/<id>
is not run.All other hooks run, in order of
beforeModel
=>afterModel
=>setupController
This doesn't happen, when I directly load the route via hard refresh of
student/<id>
.Previous to ember 2.15, hooks run in
beforeModel
=>model
=>afterModel
=>setupController
in all cases.The text was updated successfully, but these errors were encountered: