lundi 2 juin 2014

Parse.com API sending empty object on delete

I'm using Parse.com's API for the backend. Parse sends back an empty object on delete, and the stores related to the model in Sencha Touch aren't notified of this erase: ST complains:

Code:



[WARN][Ext.data.Operation#process] Unable to match the destroyed record that came back from the server. Console.js?_dc=1401757076548:35

I tried doing the following explicitly:

Code:



myModel.setIsErased(true);
myModel.notifyStores('afterErase', myModel);

It seems to be doing the right thing, but is there a better way to handle this?

Any help is much appreciated! Thanks!





Aucun commentaire:

Enregistrer un commentaire