I’m running into an issue with findQuery on a controller store. The query works fine, but when I pushPayload on to the store, it isn’t triggering any sort of change, and isn’t updating. If I change to findAll, then pushPayload works as expected.
Old code (works):
model: function(params) {
return this.store.findAll('my-model');
},
then later:
controller.store.pushPayload('my-model', data);
But if I switch to:
model: function(params) {
return this.store.findQuery('my-model', params);
},
then later:
controller.store.pushPayload('my-model', data);
Then the update isn’t triggered. Any thoughts? I read that findQuery is returning something different than findAll, but, I’m not sure if there’s a way around it or not.