-
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
Block Editor: revert deoptimization useNestedSettingsUpdate #46350
Conversation
…Settings actions"
Size Change: +74 B (0%) Total Size: 1.32 MB
ℹ️ View Unchanged
|
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.
This looks good to me but what's weird to me is that when I introduced this batching, it had a huge impact on first block load that was noticeable in the graph very easily. But the React 18 upgrade PR didn't seem to have the opposite effect. Now I'm wondering if there was another change that made this optimization unnecessary. (but I can't think of anyway of avoiding the issue we had 🤔)
The initial load of the |
…Settings actions" (WordPress#46350)
Revert the deoptimization of
useNestedSettingsUpdate
that was done during the React 18 migration (#45235).Mysteriously, after the revert there are no failed unit or e2e tests. Previously, in the #45235 branch, I had to modify
useNestedSettingsUpdate
to get rid of "update not wrapped inact()
" warnings. These warnings appeared when testingpackages/block-library
blocks with inner blocks, likecolumns
,list
orbuttons
.I'm not sure why the tests are now green without any extra effort. The memoization fixes for
innerBlocks
in #46226 might be the cause.