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
Looks like our Realm.asFlow() isn't being triggered when there is a remote change, whereas queries are being triggered correctly:
realm.asFlow().collect {
// Is not being triggered when changes are coming from another device
println("$it -> ${it.realm.version()}")
}
realm.query<FlexParentObject>().asFlow().collect {
// Works if changes are coming from another device
println("$it -> ${it.list.size}")
}
Seems to be that we are only initializing the nofitier's internal LiveRealm when we are actually listening for something other that top level realm update. So the realm_add_realm_changed_callback is not registered before listening for something else. An immediate workaround until a fix is ready would be to just trigger some notification, ex.
Looks like our
Realm.asFlow()
isn't being triggered when there is a remote change, whereas queries are being triggered correctly:This test reproduces the issue: https://github.com/realm/realm-kotlin/pull/1071/files#diff-65ad5644786458a5a2bc5d99f679e8533faf91be5c5ec9aedf806cba336acaefR214
The text was updated successfully, but these errors were encountered: