lundi 1 mai 2017

How to handle request when destroyRecord in Ember is called?

When calling destroyRecord on Ember data model, it sends an ajax request to find the deleted record. This results in this error "Attempted to handle event loadingData on while in state root.deleted.inFlight. Called with {_id: 832, _label: Fetching visit with id: 490725...."

The header request url on the ajax call is http://ift.tt/2pp22hf --> 490725 is the record I am deleting.

Any possible way to not send this request?




Aucun commentaire:

Enregistrer un commentaire