-
Notifications
You must be signed in to change notification settings - Fork 4.3k
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
iAPI: Fix the logic path that merges plain objects #68579
iAPI: Fix the logic path that merges plain objects #68579
Conversation
The following accounts have interacted with this PR and/or linked issues. I will continue to update these lists as activity occurs. You can also manually ask me to refresh this list by adding the If you're merging code through a pull request on GitHub, copy and paste the following into the bottom of the merge commit message.
To understand the WordPress project's expectations around crediting contributors, please review the Contributor Attribution page in the Core Handbook. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM!
Flaky tests detected in 0a24a9a. 🔍 Workflow run URL: https://github.com/WordPress/gutenberg/actions/runs/12696005927
|
Since this issue was introduced in 6.7, should we add back the I launched earlier the Gutenberg 20.0 release process when this PR wasn't ready, and therefore, I removed the |
Ah, I thought I had to add that label in the pull request of the backport to the WordPress 6.7 branch. I was planning on doing that next.
No, don't worry, it can go in the next version. |
What?
This is a bug that David and I have been hunting for a while, and David finally found the problem. This regression was introduced in WP 6.7, so this fix should be released in WP 6.7.2.
Fixes a problem accessing getters on the client during the merge of the client and server states on client-side navigation, when the derived state is defined in the server as a Closure.
We should also stop serializing the derived state defined in the server using Closures as a follow-up. I've added the task to the WP 6.8 iteration.
Why?
Because the getters should never be executed without scope.
How?
Refactoring the
deepMergeRecursive
so it doesn't execute the getters.