-
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
Site editor: avoid fetching themes on load #57985
Conversation
Size Change: +269 B (0%) Total Size: 1.7 MB
ℹ️ View Unchanged
|
Flaky tests detected in baa7e32. 🔍 Workflow run URL: https://github.com/WordPress/gutenberg/actions/runs/7575874033
|
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.
Well spotted
What?
This PR prevents certain components in the site editor from triggering a server request to get all the themes. We shouldn't call
getTheme
with null.Why?
We shouldn't be requesting all themes when the site editor loads.
How?
Testing Instructions
Testing Instructions for Keyboard
Screenshots or screencast