My app has an index page listing all items, when clicking an item I want to reload the model for that item, as the single-model API endpoint sideloads the relations.
But I only want to reload the model if they aren't already fetched.
Is there any way to achieve this? I've tried something like:
return this.store.find('todo-list', params.id).then((model) => model.reload());
but that didn't seem to work + it will always reload regardless of the relations already being loaded.
Ember.JS and Ember-Data Version: 1.13.5
findRecord
in > 1.13 emberjs.com/blog/2015/06/18/ember-data-1-13-released.html - Gennady Dogaev