-
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
getDefaultTemplateId: ensure entity config is loaded #66650
Conversation
Size Change: +7 B (0%) Total Size: 1.81 MB
ℹ️ View Unchanged
|
Flaky tests detected in 72c5196. 🔍 Workflow run URL: https://github.com/WordPress/gutenberg/actions/runs/11617462864
|
The following accounts have interacted with this PR and/or linked issues. I will continue to update these lists as activity occurs. You can also manually ask me to refresh this list by adding the If you're merging code through a pull request on GitHub, copy and paste the following into the bottom of the merge commit message.
To understand the WordPress project's expectations around crediting contributors, please review the Contributor Attribution page in the Core Handbook. |
If I understand the issue correctly, the finish resolution for |
} ); | ||
const template = await response.json(); | ||
await resolveSelect.getEntitiesConfig( 'postType' ); |
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.
Let's add an inline comment here. Otherwise, the resolution seems out of place and can be accidentally removed.
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, @ellatrix! This fixed the issue in Safari for me ✅
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.
@Mamaduka I tested the query block on the All Archives template in trunk, and it's stuck in a loading state there too? 🤔 |
@ellatrix, odd. It works fine on the latest trunk, but I get an infinite loop on this branch. |
92f3afa
to
62b329b
Compare
@Mamaduka Ah, ok, it works on the latest trunk indeed. Rebased. Must have been fixed in a different PR. |
Indeed it was fixed via #66655. |
Co-authored-by: ellatrix <ellatrix@git.wordpress.org> Co-authored-by: Mamaduka <mamaduka@git.wordpress.org>
What?
See #66579 (comment).
See #66647.
The problem was the the entities configs were not loaded when the template was received as an entity.
Why?
The Site Editor would not load in Safari without the temporary fix. See #66579 (comment).
How?
Ensure we wait for the entities config to be loaded.
Testing Instructions
Open the Site Editor in Safari.
Testing Instructions for Keyboard
Screenshots or screencast