diff --git a/docs/designers-developers/developers/data/data-core-block-editor.md b/docs/designers-developers/developers/data/data-core-block-editor.md index 022fcf2cd2db9..34ec46b86ef5d 100644 --- a/docs/designers-developers/developers/data/data-core-block-editor.md +++ b/docs/designers-developers/developers/data/data-core-block-editor.md @@ -253,8 +253,6 @@ _Returns_ Returns all block objects for the current post being edited as an array in the order they appear in the post. -Does not include InnerBlocks of blocks which control their own InnerBlocks. - Note: It's important to memoize this selector to avoid return a new instance on each call diff --git a/packages/block-editor/src/store/reducer.js b/packages/block-editor/src/store/reducer.js index 00ecabceebe49..c3374ec3b0776 100644 --- a/packages/block-editor/src/store/reducer.js +++ b/packages/block-editor/src/store/reducer.js @@ -34,8 +34,6 @@ import { insertAt, moveTo } from './array'; * context, the value of which is an array of block client IDs existing within * that nesting context. * - * @todo noahtallen - * * @param {Array} blocks Blocks to map. * @param {?string} rootClientId Assumed root client ID. * @@ -264,7 +262,6 @@ const withBlockCache = ( reducer ) => ( state = {}, action ) => { case 'INSERT_BLOCKS': { const updatedBlockUids = keys( flattenBlocks( action.blocks ) ); - // Only include the rootClientId if its inner blocks are uncontrolled. if ( action.rootClientId ) { updatedBlockUids.push( action.rootClientId ); } diff --git a/packages/block-editor/src/store/selectors.js b/packages/block-editor/src/store/selectors.js index 45acdc6d9c334..f29a035a1b392 100644 --- a/packages/block-editor/src/store/selectors.js +++ b/packages/block-editor/src/store/selectors.js @@ -212,8 +212,6 @@ export const __unstableGetBlockWithoutInnerBlocks = createSelector( * Returns all block objects for the current post being edited as an array in * the order they appear in the post. * - * Does not include InnerBlocks of blocks which control their own InnerBlocks. - * * Note: It's important to memoize this selector to avoid return a new instance * on each call *