-
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
[Block Library]: Update the relationship of No results
block to ancestor
#48348
Conversation
Was there any discussion about which blocks could benefit from using Actually, it's the only block that uses that API, but in a slightly different way than this PR explores. It also made me wonder whether the Comments block doesn't use |
In various issues at some point, but not a separate issue. We also introduced a new Query Loop PR that wraps these blocks inside
That's a good point and is something we might not want for Post Template... Maybe @ockham or @c4rl0sbr4v0 could share some insights? |
+1 This would really be great! It would most likely solve my issue #48296 when I want to use |
…Query Loop to `ancestor`
8a1b889
to
063569b
Compare
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. |
ancestor
No results
block to ancestor
Yeah, good idea to move forward with this change 👍🏻 |
Flaky tests detected in 5e67986. 🔍 Workflow run URL: https://github.com/WordPress/gutenberg/actions/runs/12235468898
|
…cestor` (WordPress#48348) Co-authored-by: ntsekouras <[email protected]> Co-authored-by: Mamaduka <[email protected]> Co-authored-by: gziolo <[email protected]> Co-authored-by: webmandesign <[email protected]>
What?
This PR just add a bit more flexibility to the insertion of
No results
inside a Query Loop block. Previously you could insert them through the inserter only if they were direct parents of Query Loop, but now they can be inserted in nested blocks(ex Group), as long as they have Query Loop as an ancestor.Similar with: #67657 and #58602
Testing Instructions
Group
and then insert through the inserterNo results
block.