-
Notifications
You must be signed in to change notification settings - Fork 4.2k
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: Simplify check in 'withBlockControls' styles hook #53227
Conversation
Size Change: +2 B (0%) Total Size: 1.44 MB
ℹ️ View Unchanged
|
Flaky tests detected in 8ce5285. 🔍 Workflow run URL: https://github.com/WordPress/gutenberg/actions/runs/5725699474
|
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.
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.
Thanks for testing 🙇 |
What?
A minor follow-up to #53092.
getBlockType
method call. ThehasBlockSupport
accepts name string or block type object, so will thehasStyleSupport
wrapper.key
prop to the returnedBlockEdit
component to avoid accidental remounts. This is a common pattern in similar hooks. See Don't remount the block when the 'templateLock' is set to 'contentOnly' #50292.Testing Instructions
Confirm fix from #53092 works as before.