Closed e45lee closed 7 years ago
applyRemoteChanges returns a promise?
It does return a promise. It's not very well documented, but it is in the types definition file: https://github.com/dfahlander/Dexie.js/blob/master/addons/Dexie.Syncable/api.d.ts
This changes the sync protocol to block until the server's changes have been successfully applied.
If there are a large number of changes that need to be synced this can block forever. I've submitted a PR to Dexie that will hopefully mitigate this issue (it does on the one bad example we have right now).
See https://github.com/dfahlander/Dexie.js/pull/570/ and https://github.com/dfahlander/Dexie.js/issues/569