Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

small question about offline syncing #42

Open
bzeng opened this issue Aug 19, 2015 · 1 comment
Open

small question about offline syncing #42

bzeng opened this issue Aug 19, 2015 · 1 comment

Comments

@bzeng
Copy link

bzeng commented Aug 19, 2015

Say a record exists on both online and offline store.

Now, somebody deletes it from the online store.
The next time I call emberSync.find(), will it be deleted from the offline store?

Just want to know if you can confirm the behavior (currently unable to test).
I looked over the code and this does not seem to be the case. Thanks!

@kurko
Copy link
Owner

kurko commented Dec 1, 2015

@bzeng nope. The 2 ways for that to be possible are:

  1. Backend having a /deleted endpoint that Ember-Sync would then delete locally.
  2. Backend having an attribute in every record such as status: removed. Then in your Ember app you'd just not show what was deleted.

That's very unique to the application, so I decided to not to it at the time and do a hack in my own application.

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

No branches or pull requests

2 participants