Closed micheltlutz closed 4 years ago
Repo with problem:
Hey @michaelavila thank you for reporting this.
I reviewed the provided repo, this error is not connected to RxRealm. It's caused by a little issue with Realm usage.
The point is - you can't modify objects, which were removed from Realm. Here is corresponding SO question - https://stackoverflow.com/questions/31852782/realm-object-has-been-deleted-or-invalidated
To make it work you need to create a new object and then add it to Realm.
Use case:
I have a favorite button, when it's favorited I press it again it changes to unfavorite and removes the record. When I re-favorite it it should insert the object again but it accuses this error below
Crash with error: