diff --git a/packages/block-editor/src/components/block-navigation/block-slot.js b/packages/block-editor/src/components/block-navigation/block-slot.js index 21fe55a6e9ffda..9615d214b2c1b4 100644 --- a/packages/block-editor/src/components/block-navigation/block-slot.js +++ b/packages/block-editor/src/components/block-navigation/block-slot.js @@ -31,8 +31,9 @@ const getSlotName = ( clientId ) => `BlockNavigationBlock-${ clientId }`; function BlockNavigationBlockSlot( props, ref ) { const { clientId } = props.block; - const { name } = useSelect( ( select ) => - select( blockEditorStore ).getBlockName( clientId ) + const { name } = useSelect( + ( select ) => select( blockEditorStore ).getBlockName( clientId ), + [ clientId ] ); const instanceId = useInstanceId( BlockNavigationBlockSlot );