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

How do I force unloadAll() to execute?

$
0
0

@johnnyicon wrote:

Hi everyone,

I’m trying to use store.unloadAll('model-name') before calling a subsequent store.query('model-name', params).

Sometimes the unloadAll method works as I expect it to, which is to unload all the models in the store, which then updates my view. However, sometimes the previous models stick around. I know the unloadAll method only schedules an unload for the next run loop.

I’ve tried using Ember#run() but that didn’t work either.

Is there a particular way to do this? Perhaps some sort of hook I’m unaware of?

Thanks in advance!

Posts: 2

Participants: 2

Read full topic


Viewing all articles
Browse latest Browse all 4830

Trending Articles