Uploaded image for project: 'Realm Core'
  1. Realm Core
  2. RCORE-1636

V13.11.0 broke `Results.snapshot()` of a collection of objects

    • Type: Icon: Bug Bug
    • Resolution: Fixed
    • Priority: Icon: Major - P3 Major - P3
    • None
    • Affects Version/s: None
    • Component/s: None
    • None

      Expected results

      Prior to v13.11.0 calling Results.snapshot() on a Results from a collection of object would snapshot the results so that they would be usable even if the collection got deleted.

      Actual Results

      When you delete a collection accessing Results.size() fails, even if snapshot() was called prior to the deletion. This change was introduced by this commit.

      Steps & Code to Reproduce

      This change caused a failure in the realm-js tests. If the behavior change in core is correct, we can change the tests to reflect this, but we want to be sure that we aren't just papering over a user-facing breaking change in core.

      Core version

      Core version: v13.11.0

            Assignee:
            jorgen.edelbo@mongodb.com Jørgen Edelbo
            Reporter:
            unitosyncbot Unito Sync Bot
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: