Add support for mapping client side ID's to server side ID's. When Offline and creating new object - this object will receive client id. If subsequent edits are performed they all going to be done on this client id. When online create will succeed but edits will fail due to fact that they rely on wrong id (client id not server)
When optimistic response is supplied we need to cache that as well and then try to replicate that on restart. Code that replicates mutation: https://github.com/aerogear/aerogear-js-sdk/blob/debug-logging/packages/sync/src/offline/OfflineRestoreHandler.ts#L50-L52
ping [~stephencoady] |
|