seeing some strange behavior, totally stumped.
i have a nested route, so “route1.show.route2.show”. Upon hitting route1.show, a list of items are loaded - and clicking any item loads the nested route for that item.
What I’m seeing is that clicking any item correctly loads the nested route, but the original list of items is reordered, so that the clicked item is now last in the list.
The first route’s model hook isn’t being called (because i’m using the resource in the link-to, not the resource.id)
but the nested route is reloading the nested resource, with more fields added. why would reloading this one item cause ember data to change the order of the association in the parent route?
Parent route model hook:
model(params) {
this.get('store').findRecord('resource', params.resource_id);
}
Nested route model hook:
model(params) {
return this.get('store').findRecord('nestedResource', params.nestedResource_id);
}
UPDATE: On the parent route, the association is sideloaded on the request. Theres a list of association records on this route, and is list what's getting reordered each time the nested route model is loaded.