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

Removing from set doesn't remove from other devices, causes re-add #283

Open
joshbirnholz opened this issue Apr 18, 2019 · 2 comments
Open

Comments

@joshbirnholz
Copy link

I have a countdown app that allows you to put countdowns into different categories. The Category class has a to-many relationship with a Countdown, so a countdown can be in more than one category, or none.

When I add a countdown to a category, it gets added to the category on other devices as well, just as I'd expect.

However removing a countdown from a category doesn't work correctly. Removing a countdown from a category triggers a sync. On the other device, a sync is triggered, but the countdown is not removed from the category on the other device. Another sync then occurs on the other device, which then triggers a sync on the first device. The countdown gets re-added to the category on the first device.

I'm not sure what I'm doing wrong or what's causing this.

Videos of this happening: https://imgur.com/a/5759Ae6

@easiwriter
Copy link

I had a similar problem once. It turned out to be unique ids. Do your entities have a unique id across devices and do you let ensembles know about them?

@drewmccormack
Copy link
Owner

drewmccormack commented Apr 19, 2019 via email

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

3 participants