-
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
Remove serverSideBlockDefinitions from a test #52215
Conversation
Size Change: 0 B Total Size: 1.42 MB ℹ️ View Unchanged
|
Flaky tests detected in 86bd35b. 🔍 Workflow run URL: https://github.com/WordPress/gutenberg/actions/runs/5436137929
|
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.
Good catch, serverSideBlockDefinitions
are exposed through unstable__bootstrapServerSideBlockDefinitions
.
LGTM 🚀
Making the
serverSideBlockDefinitions
object a private variable in the module, stopping to export it. The only usage of the export was in a unit test. And that test doesn't need the value, because there are no server-bootstrapped block data present in a unit test.This export was originally added in #16518. When implementing async block loading, I plan to turn the server bootstrap info into a part of Redux state.