dstore
dstore copied to clipboard
DStoreAdapter result updating
When using the DStoreAdapter for legacy reasons - observing the result works fine - but the result-array is not being updated if items are deleted etc. in the old store-API, the results-array is (always?) up-to-date
var dstoreadapter = new DStoreAdapter()..
ver result = dstoreadapter.query(...);
result.observe(function(item,from,to){
when(result,function(){
console.debug(result); //result must not contain the removed object
});
});
dstoreadapter.delete(...);
Am I doing something wrong?