@johnnyicon wrote:
Hi everyone,
I’m trying to use
store.unloadAll('model-name')
before calling a subsequentstore.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 theunloadAll
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