kurko / ember-sync

MIT License
282 stars 28 forks source link

small question about offline syncing #42

Open bzeng opened 9 years ago

bzeng commented 9 years ago

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 commented 8 years ago

@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.