PDA

View Full Version : [CLOSED] Store "isSyncing" true inside a 'write' listener



mankz
7 Apr 2014, 4:34 AM
Store doesn't seem to like being synced again inside a 'write' listener. I thought 'write' signaled that the store was done writing?

This leads to an exception if you try to call sync again in such a listener (to do sequential syncs in order)


var treeStore = new Ext.data.TreeStore({
model : someModel,
autoLoad : false,
autoSync : false,

proxy : {
type : 'ajax',
actionMethods : { create: "GET", read: "GET", update: "GET", destroy: "GET" },
api : {
read : 'data/tree-read.js',
create : 'data/tree-create.js',
update : 'data/tree-update.js',
destroy : 'data/tree-delete.js'
},
reader : { type : 'json' }
},

listeners : {
write : function() {
debugger;
console.log(this.isSyncing); // TRUE
}
},

root : {
expanded : true
}
});

mitchellsimoens
8 Apr 2014, 5:48 AM
Thanks for the report! I have opened a bug in our bug tracker.