This repository has been archived by the owner on Feb 23, 2024. It is now read-only.
Product Query [4]: Research passing context down to inner blocks instead of the query #8131
Labels
block-type: product-query
Issues related to/affecting all product-query variations.
focus: performance
The issue/PR is related to performance.
type: task
The issue is an internally driven task (e.g. from another A8c team).
Currently, the Query Loop block is responsible for building up the query, it then passes it down to the Post Template block which passes it again down to each of the inner blocks. This means that inner blocks are responsible for their own fetching of data, which is inefficient and, especially editor-side, makes the loading of the block a bit slower than it could be, and also quite error prone (as some requests may fail, while others succeed).
On the front-end, this also happens, but built-in caching likely makes the performance impact negligible.
This issue is about a research spike about:
We'd like to see if this is possible without modifications to Gutenberg. If those are necessary, the scope of this issue is also to understand how difficult would that be.
The deliverable of this issue should likely be a P2 post with the research results.
The text was updated successfully, but these errors were encountered: