-
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
Prevent BlockBreadcrumb from re-rendering unnecessarily when typing #51628
Conversation
Size Change: +49 B (0%) Total Size: 1.4 MB
ℹ️ View Unchanged
|
Flaky tests detected in bf163d4. 🔍 Workflow run URL: https://github.com/WordPress/gutenberg/actions/runs/5307918884
|
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.
Thank you, @noisysocks!
What?
Similar to #51518 and #51432.
Reduce the number of times
BlockBreadcrumb
re-renders when typing post content.Why?
Less re-rendering when typing post content should improve typing performance.
How?
Introduces a specialised private selector for this component.
Testing Instructions
Screenshots or screencast
Before:
Kapture.2023-06-19.at.14.44.43.mp4
After:
Kapture.2023-06-19.at.14.44.11.mp4