diff --git a/packages/block-editor/src/components/block-list/index.native.js b/packages/block-editor/src/components/block-list/index.native.js index e79ac4335a9f4..47808ae5cf29a 100644 --- a/packages/block-editor/src/components/block-list/index.native.js +++ b/packages/block-editor/src/components/block-list/index.native.js @@ -53,6 +53,7 @@ export class BlockList extends Component { this.extraData = { parentWidth: this.props.parentWidth, renderFooterAppender: this.props.renderFooterAppender, + onDeleteBlock: this.props.onDeleteBlock, }; this.renderItem = this.renderItem.bind( this ); this.renderBlockListFooter = this.renderBlockListFooter.bind( this ); @@ -107,14 +108,16 @@ export class BlockList extends Component { } getExtraData() { - const { parentWidth, renderFooterAppender } = this.props; + const { parentWidth, renderFooterAppender, onDeleteBlock } = this.props; if ( this.extraData.parentWidth !== parentWidth || - this.extraData.renderFooterAppender !== renderFooterAppender + this.extraData.renderFooterAppender !== renderFooterAppender || + this.extraData.onDeleteBlock !== onDeleteBlock ) { this.extraData = { parentWidth, renderFooterAppender, + onDeleteBlock, }; } return this.extraData; diff --git a/packages/edit-navigation/src/components/menus-editor/index.js b/packages/edit-navigation/src/components/menus-editor/index.js index 4fbd3f6f88d2e..f2bf910b3c3b1 100644 --- a/packages/edit-navigation/src/components/menus-editor/index.js +++ b/packages/edit-navigation/src/components/menus-editor/index.js @@ -21,9 +21,10 @@ import MenuEditor from '../menu-editor'; export default function MenusEditor( { blockEditorSettings } ) { const { menus, hasLoadedMenus } = useSelect( ( select ) => { const { getMenus, hasFinishedResolution } = select( 'core' ); + const query = { per_page: -1 }; return { - menus: getMenus(), - hasLoadedMenus: hasFinishedResolution( 'getMenus' ), + menus: getMenus( query ), + hasLoadedMenus: hasFinishedResolution( 'getMenus', [ query ] ), }; }, [] );