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

This issue belongs to an archived project. You can view it, but you can't modify it. Learn more

XMLWordPrintableJSON

    • Type: Bug
    • Resolution: Fixed
    • Priority: 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:
              Jørgen Edelbo (Inactive)
              Reporter:
              Unito Sync Bot
              Archiver:
              Marc Greenfield

                Created:
                Updated:
                Resolved:
                Archived: