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

fix(document): avoid unnecessary clone() in applyGetters() that was triggering additional getters #14844

Merged
merged 2 commits into from
Sep 3, 2024

Conversation

vkarpov15
Copy link
Collaborator

Fix #14840
Fix #14835
Re: #14724

Summary

We finally managed to fix the root cause of #7442 etc.: applyGetters() was re-triggering getters on single nested subdocs by using get() to get the value, even though that isn't necessary because applyGetters() is only called on already cloned values. This PR fixes that, and means we can get rid of the _skipSingleNestedGetters option as well

Examples

@vkarpov15 vkarpov15 added this to the 8.6.1 milestone Aug 29, 2024
Copy link
Collaborator

@hasezoey hasezoey left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@vkarpov15 vkarpov15 merged commit 8f4070a into master Sep 3, 2024
46 checks passed
@hasezoey hasezoey deleted the vkarpov15/gh-14840 branch September 3, 2024 20:30
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
2 participants