-
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
Interactivity API: Fix server side rendering for Search block #59029
Conversation
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. |
Flaky tests detected in 95e1a79. 🔍 Workflow run URL: https://github.com/WordPress/gutenberg/actions/runs/7905654479
|
What could help to catch this type of issue with server-side rendering in the future? |
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.
Code change makes perfect sense. I haven't tested it.
It is hard to test the sync between the server side and the client side. I cannot think anything rather than snapshots testing. |
So you would have to compare Preact's HTML output with WP's HTML output for the same chunk rendered? |
That would be the ideal, but maybe is easier, for core blocks, just to save a snapshot of the server render and compare if somebody changes the |
Just a note here. This case is interesting. I would have expected value = JSON.parse( '"core/search"' );
value === 'core/search' // true |
Co-authored-by: c4rl0sbr4v0 <cbravobernal@git.wordpress.org> Co-authored-by: gziolo <gziolo@git.wordpress.org>
I just cherry-picked this PR to the cherry-pick-beta-2 branch to get it included in the next release: 4d94d57 |
Co-authored-by: c4rl0sbr4v0 <cbravobernal@git.wordpress.org> Co-authored-by: gziolo <gziolo@git.wordpress.org>
What?
#58943 introduced a reversion on the search block, SSR is not working in Search block due to a escaping commas issue.
Testing Instructions
trunk
you have a movement on the input.Testing Instructions for Keyboard
Screenshots or screencast
Before:
before.mov
After:
after.mov