-
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: hooks: avoid BlockEdit filter for content locking UI #56957
Conversation
Size Change: -446 B (0%) Total Size: 1.71 MB
ℹ️ View Unchanged
|
Flaky tests detected in e6fa033. 🔍 Workflow run URL: https://github.com/WordPress/gutenberg/actions/runs/7172720743
|
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 👍
What?
Similar to all the other hooks (#56862): we should avoid the hook here and avoid mounting this component for every single block on the page. It should only be mounted when controls should be displayed.
Why?
This will improve typing performance, but especially load (first block) performance.
First run: -5% load time (first block).
Second run: -6%.
How?
Testing Instructions
Testing Instructions for Keyboard
Screenshots or screencast