loopback-example-offline-sync icon indicating copy to clipboard operation
loopback-example-offline-sync copied to clipboard

none isomorphic data sync and error in datasources.local.js

Open rrNuvoPoint opened this issue 11 years ago • 3 comments

Hello!

I need a offline data sync to use in an ionic app so i need it to be none isomorphic. This loopback example is broken for me. Every time i use to different browsers on my local machine to make changes it make conflicts that cannot me resolved.

Trying to resolve result in this:

Error: Duplicate entry for LocalTodo.id

Also i had to update:

module.exports = { remote: { url: GLOBAL_CONFIG.restApiUrl } };

To

module.exports = { remote: { url: 'http://localhost:3000'+GLOBAL_CONFIG.restApiUrl } };

For it just to semi work with server sync.

Is there anyone who got a working example of loopback offline sync with none isomorphic code?

rrNuvoPoint avatar May 12 '15 06:05 rrNuvoPoint

Hi, could you please fetch the latest version from github and try again?

bajtos avatar Jun 02 '15 14:06 bajtos

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

stale[bot] avatar Aug 23 '17 14:08 stale[bot]

This issue has been closed due to continued inactivity. Thank you for your understanding. If you believe this to be in error, please contact one of the code owners, listed in the CODEOWNERS file at the top-level of this repository.

stale[bot] avatar Sep 06 '17 14:09 stale[bot]