We need a dynamic block that works very similar to a normal reusable-block or template-part, with the difference that it’s content - aka its innerBlocks - is coming from another block within the same post, not another post itself.
In PHP this is easy done like this and would be fine to use as the blocks render_callback for the frontend:
….
But by avoiding the use of the <ServerSideRender>component because of its flashy rendering, how to do it with JS and using other Gutenberg packages?
I’ve looked into the following, which looked promising:
useInnerBlocksProps is cool, but I can’t figure out how to provide it with reference to a block, not a post
We need a dynamic block that works very similar to a normal reusable-block or template-part, with the difference that it’s content - aka its
innerBlocks
- is coming from another block within the same post, not another post itself.In PHP this is easy done like this and would be fine to use as the blocks
render_callback
for the frontend: ….But by avoiding the use of the
<ServerSideRender>
component because of its flashy rendering, how to do it with JS and using other Gutenberg packages?I’ve looked into the following, which looked promising:
useInnerBlocksProps
is cool, but I can’t figure out how to provide it with reference to a block, not a postuseEntityBlockEditor
—-