This, if you ask me, is some kind of design flaw in ExtJS.
AbstractStore has onCreateRecords , onUpdateRecords and onDestroyRecords , which are empty functions that you can override. You can call rejectChanges () if it has false.
Ext.define('BS.store.Users', { extend: 'Ext.data.Store', model: 'BS.model.User', autoSync: true, autoLoad: true, proxy: { type: 'direct', api: { create: Users.Create, read: Users.Get, update: Users.Update, destroy: Users.Delete, }, reader: { type: 'json', root: 'data', }, }, onCreateRecords: function(records, operation, success) { console.log(records); }, onUpdateRecords: function(records, operation, success) { console.log(records); }, onDestroyRecords: function(records, operation, success) { console.log(records); }, });
source share