Skip to content
This repository has been archived by the owner on Sep 16, 2020. It is now read-only.

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

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

romantaraban
Copy link

@romantaraban romantaraban commented Jul 20, 2017

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
   },
   ....
}

if the callback is not executed dataset.syncronize() will not call onSuccess() when there are no remote changes
@jieren172
Copy link

jieren172 commented Mar 5, 2018

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

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants