mercredi 31 décembre 2014

Ember-Data destroyRecord stays in local store

I am on ember 1.8.1 and ember-data beta 12


If I do a createRecord and the user chooses not to save it, on the route deactivation I am trying to do model.destroyRecord() however, it continues to be available in my local store with a currentState.stateName: root.deleted.saved


I can't seem to remove it from my local store and I don't know why. Why does the record have a stateName of root.deleted.saved and still available when I do a store.find?





Aucun commentaire:

Enregistrer un commentaire