You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hey Tristan,
To the best of my knowledge there is currently no maintainer/owner for this project.
If you or someone you know wants to take responsibility and ownership for fixing it up and cutting a new release, I’m happy to provide permissions to do so.
Shai
On Nov 24, 2020, 12:31 PM 0200, Tristan Richard ***@***.***>, wrote:
Anything new on this? Any workaround?
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub, or unsubscribe.
let realm: Realm = try! Realm()
try! realm.write {
realm.add(MyObject())
}
let results = realm.objects(MyObject.self)
_ = Observable
.array(from: results, synchronousStart: true, on: .main)
.subscribe(onNext: { objects in
print("Objects count: \(objects.count)")
})
try! realm.write {
realm.delete(results)
}
Expected output:
Objects count: 1
Objects count: 0
Actual output:
Objects count: 1
The issue is that we need to check both collections for equality to decide if we should or should not emit an event in initial which is cumbersome and close to impossible in practice.
RxRealm is just a wrapper around Realm and shouldn't bring unexpected side effects like this one. The other issue is that synchronousStart doesn't care about queue parameter so the initial event might even come from an unexpected queue. I really got hurt by this one spending days investigating so my proposal is to remove the synchronousStart parameter at all and do everything async. This one will be a major change though.
JoeMatt
changed the title
change gets swollen when using synchronous first element
[bug] change gets swollen when using synchronous first element
Jan 22, 2022
As described here:
realm/realm-swift#4761 (comment)
Demo code:
The text was updated successfully, but these errors were encountered: