-
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
Allow blocks with interactivity support inside core/query (useUnsupportedBlocks) #59752
Comments
Hi there! When you mention the unsupported flag, you mean the client side navigation that is handled here?
|
Hey, I’m referring to this hook that is called in the editor that doesn’t allow non core blocks to be present for interactivity to be enabled
|
I'll take a quick stab at this one. One quick question is what is the history of this check? Why was it implemented in its current form @gziolo do you know that bit of history or perhaps know who to ask? Are we overlooking a some pitfall? |
@poof86 PR submitted. Please give it a whirl. |
It looks like the logic on the server and on the client differ when making the decision whether the page can be loaded without the full reload.
@DAreRodz and @c4rl0sbr4v0, should be able to help resolve this issue. |
The php logic makes sense; it checks if interactivity or interactivity.clientNavigation are set true. If so, the page can be loaded without refresh. |
Yes please, I've tried numerous ways to hijack the force disabling of enhanced pagination with no luck... even though my interactive blocks work perfectly fine in the query block. |
And because of that, I think this issue is a bug instead of an enhancement 😅 |
I sense that although this is noted as a bug it may not be critical enough to include in 6.5.1 (timeline to be determined), but would be nice to have, correct? I just wanted to evaluate and clarify the impact. @c4rl0sbr4v0 perhaps you have an impending pull request for review? |
The PR is almost ready (I would like the contributor to remove just one "bool" word, I can do it my self, but is not critical). It's not critical, but is a really nice to have. Cause right now, nobody can have a Core Query block with "force reload" disabled and an Interactive block or a client side navigation compatible block inside that Query block. You would need a block variation, and that is adding too much hustle just for that. The server side is already allowing that, but we forgot to update that logic in the |
The fix was released in WordPress 6.5.2. |
Can anyone get the same fix to the most recent version of the Gutenberg plugin as well? |
I'm running version 18.1.2 of the Gutenberg plugin. And the same issue happens. I have checked the code within the plugin and it is still looking for 'core/' blocks only. |
This fix is in 18.2 which is scheduled for release tomorrow, 4/24 |
@colinduwe Thank you so much. |
What problem does this address?
I want to create blocks that I can use in the core/query block, but because my custom blocks don't start with the prefix "core/" they are flagged as unsupported while support for interactivity is set to true or support for interactivity.clientNavigation is set to true.
Edit: The server side part is already using the supports instead of
core/--
string, so it differs from the edit part when checking the Interactivity supports.What is your proposed solution?
Allow for prefixes other then "core/" and check if the block has support for interactivity instead.
The text was updated successfully, but these errors were encountered: