Quantcast
Channel: Ember.JS - Latest topics
Viewing all articles
Browse latest Browse all 4828

Ember-data store not reread

$
0
0

@portugaleren wrote:

I have the following code:

  model() {
		return this.store.findAll('category').then((categories) => {
			return categories.sortBy('name');
		});
	},

Data is read and sorted the first time the route is accessed but not when I add or delete rows. These changes are not shown on the template until I do a reload of the page even I can see them in the store.
If I just do the simple

return this.store.findAll('category')

changes are shown immediately but of course not sorted.

Any clues to this problem?

Posts: 3

Participants: 2

Read full topic


Viewing all articles
Browse latest Browse all 4828

Trending Articles