lundi 13 avril 2015

Ember-Data Destroy model without persisting

I'm building a simple search interface where each new search removes previous results and pushes new ones into the store. So before making a new query and pushing new records into store I remove the previous ones using deleteRecord(). However, EmberData won't push new results while there are uncommitted records raising this exception:


Attempted to handle eventpushedDataon <App.SearchResult:ember555:312> while in state root.deleted.uncommitted


The problem is that I simply want to remove the existing results (without persisting the removal of course) and show new results.





Aucun commentaire:

Enregistrer un commentaire