Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Closed
RedBeard0531 opened this issue May 16, 2023 · 0 comments · Fixed by #6641
Closed

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

RedBeard0531 opened this issue May 16, 2023 · 0 comments · Fixed by #6641
Assignees

Comments

@RedBeard0531
Copy link
Contributor

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

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants