You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I see a lot of great work and thought being put into the new query block. When I first heard of the query block, I thought great - a standardised implementation of queries in the block editor.
However, I don't feel this has been completely "standardised" - in that, as a developer, I don't actually have access to the query - I can't use the query builder UI, and supply that query to anything specifically - it must be used with Query Loop block...
Currently a query block is - a Query Block with Query Loop Block, with child blocks for the post templates.
Now the query block is being brought out of FSE (which is aimed more at theme devs I guess) we could be thinking about it as a tool for block developers.
What is your proposed solution?
What if... we had a "Just Query block" that was ready to drop child blocks into? Or we enable InnerBlocks and allow the removal of the Query Loop block in the current Query block.
So we can supply queries via the new UI and pass that down through context, but then we would let devs completely decide what to do with them.
There are tons of uses cases where you would want to allow a block to have access to the actual query.
What about having a query block, and dropping in a carousel block? There could be a million (*ahem) uses - anything that traditionally uses "The Loop" could apply.
It actually makes life a lot easier for devs who want to do anything with queries (that are user configurable) - because re-inventing the wheel is pointless (and painful).
Thoughts / suggestions?
The text was updated successfully, but these errors were encountered:
rmorse
changed the title
Query Block - Seperate it from the Query Loop block
Query Block - Separate it from the Query Loop block
Feb 18, 2021
What problem does this address?
I see a lot of great work and thought being put into the new query block. When I first heard of the query block, I thought great - a standardised implementation of queries in the block editor.
However, I don't feel this has been completely "standardised" - in that, as a developer, I don't actually have access to the query - I can't use the query builder UI, and supply that query to anything specifically - it must be used with Query Loop block...
Currently a query block is - a Query Block with Query Loop Block, with child blocks for the post templates.
Now the query block is being brought out of FSE (which is aimed more at theme devs I guess) we could be thinking about it as a tool for block developers.
What is your proposed solution?
What if... we had a "Just Query block" that was ready to drop child blocks into? Or we enable InnerBlocks and allow the removal of the Query Loop block in the current Query block.
So we can supply queries via the new UI and pass that down through context, but then we would let devs completely decide what to do with them.
There are tons of uses cases where you would want to allow a block to have access to the actual query.
What about having a query block, and dropping in a carousel block? There could be a million (*ahem) uses - anything that traditionally uses "The Loop" could apply.
It actually makes life a lot easier for devs who want to do anything with queries (that are user configurable) - because re-inventing the wheel is pointless (and painful).
Thoughts / suggestions?
The text was updated successfully, but these errors were encountered: