realm-core icon indicating copy to clipboard operation
realm-core copied to clipboard

Missing notifications after client reset.

Open clementetb opened this issue 1 year ago • 6 comments

Expected results

Get a change notification on an object collection after manually recovering some data during a discard local changes client reset.

Actual Results

We don't get a notification. If we commit an empty transaction then the notification is propagated with the changes done in a previous transaction.

Steps & Code to Reproduce

  1. Add a listener to an object collection.
  2. Trigger discard local client reset.
  3. At onAfter write some data to the -before- after Realm.
  4. No notification is received for that new data.

Core version

Core version: 13.23.1

clementetb avatar Oct 18 '23 12:10 clementetb

➤ danieltabacaru commented:

[[email protected]] Is this something that may be fixed by your latest work on client reset?

sync-by-unito[bot] avatar Nov 29 '23 15:11 sync-by-unito[bot]

Possibly, but this isn't specifically one of the bugs I've seen. Still probably doesn't make sense to try to work on this until after #7161 is done.

tgoyne avatar Nov 29 '23 17:11 tgoyne

Right. Thanks for the heads up.

danieltabacaru avatar Nov 29 '23 17:11 danieltabacaru

➤ danieltabacaru commented:

[[email protected]] I can try reproducing this, but by just looking at the code before realm in onAfter callback is frozen, so attempting to create a transaction on that realm should crash the app. Isn't that the case?

sync-by-unito[bot] avatar Jan 29 '24 13:01 sync-by-unito[bot]

➤ danieltabacaru commented:

Waiting for Clement to answer.

sync-by-unito[bot] avatar Feb 12 '24 14:02 sync-by-unito[bot]

➤ clementetb commented:

My bad, I meant the after realm instance.

sync-by-unito[bot] avatar Feb 21 '24 09:02 sync-by-unito[bot]