Open getdave opened 1 year ago
Sharing my comments on that linked issue about some potential challenges - https://github.com/WordPress/gutenberg/pull/46223#issuecomment-1336757267.
The getBlock
/getBlocks
thing is very hacky, so it'd indeed be great to think up an alternative.
In
packages/block-library/src/navigation/edit/use-inner-blocks.js
we are relying on a quirk ofgetBlock
/getBlocks
to determine whether blocks are controlled/uncontrolled.We should move this to use the official API
areInnerBlocksControlled
.Originally posted by @getdave in https://github.com/WordPress/gutenberg/issues/46223#issuecomment-1333637789