@linkref wrote:
At the moment, when an article is added to the store, my view is not updated when I use store.query(), filtering server side, in my route but it’s updated when I use store.findAll() with filtering client side.
With findAll, filtering client side
//route.js model() { return this.get('store').findAll('article'); } //controller.js articleSorted: computed.filterBy('model', 'isPublished', true),
and with query filtering server side
//route.js model() { return this.get('store').query('article', { q: 'isPublished' }), }
The fact is that findAll is reloading and query is not.
I’ve found this but did not understand
Posts: 1
Participants: 1