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
When using the blocksJSON property in a query against a post/page then the data is returned correctly for most blocks, but if there is a reusable block in use then the innerBlocks of it isn't populated.
We don't drill down into our blocks through graphQL as we don't generally know the max depth of blocks an editor might use, and it saves us creating a complex nested query.
So the blocksJSON property has been a savior for us.
When using the blocksJSON property in a query against a post/page then the data is returned correctly for most blocks, but if there is a reusable block in use then the innerBlocks of it isn't populated.
We don't drill down into our blocks through graphQL as we don't generally know the max depth of blocks an editor might use, and it saves us creating a complex nested query.
So the blocksJSON property has been a savior for us.
To fix this i've changed this part
wp-graphql-gutenberg/src/Blocks/Block.php
Line 186 in f015b89
To this
Then the innerBlocks of a reusable block should be the same as the blocks that were stored in the post created for it.
The text was updated successfully, but these errors were encountered: