Is there a callback for store.sync()?
I am trying to do:
store.sync(function(){
alert('1');
});
but it does not work. The store is a local store.
Is there a callback for store.sync()?
I am trying to do:
store.sync(function(){
alert('1');
});
but it does not work. The store is a local store.
There is the way to listen success event
write
fires whenever a successful write has been made via the configured ProxyThere is no 'callback' for sync(). In order to achieve this behaviour, you will need to listen to the store's write event. Check this solution.
You can try: