-
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
ListView: Converted additional content render into a Component #51163
Conversation
Size Change: +19 B (0%) Total Size: 1.39 MB
ℹ️ View Unchanged
|
Flaky tests detected in c18fca2. 🔍 Workflow run URL: https://github.com/WordPress/gutenberg/actions/runs/5143666568
|
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.
Thanks for picking this one up @Mamaduka, this is exactly the direction I was imagining for converting the render function prop to a component 👍
Happy to give it a proper test once this is ready for review!
Thank you, @andrewserong! I did more testing, and I think PR is ready for review. |
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.
Thanks for following up @Mamaduka, this is testing well, code looks good, and I like the simplified names for some of the consts, too 👍
LGTM! ✨
Thanks for review, @andrewserong! |
Thank you 🙇 🙇 🙇 |
What?
Resolves #50827.
PR updates the
ListView
to use a component for rendering additional block UI instead of a render callback.Why?
MainContent
is rerendered.How?
renderAdditionalBlockUI
toadditionalBlockContent
and treat it like a component.renderLinkUI
function into a new component.Testing Instructions
Screenshots or screencast