amazon-archives / amazon-cognito-js

Amazon Cognito Sync Manager for JavaScript
http://aws.amazon.com/cognito
Apache License 2.0
202 stars 83 forks source link

execute callback in CognitoSyncLocalStorage.putRecords if there are no records #53

Open romantaraban opened 6 years ago

romantaraban commented 6 years ago

if the callback is not executed dataset.syncronize() will not call onSuccess() when there are no changes

// there are no remote or local changes
dataset.synchronize({
  onSuccess(dataset, newRecords) {
    // this will not be called
   },
   ....
}
jieren172 commented 6 years ago

I met this problem too, so when this PR can be merged ?