diff --git a/packages/block-editor/src/components/block-editing-mode/index.js b/packages/block-editor/src/components/block-editing-mode/index.js index 0347a9b7378d0..8cb7bdc5d7b86 100644 --- a/packages/block-editor/src/components/block-editing-mode/index.js +++ b/packages/block-editor/src/components/block-editing-mode/index.js @@ -66,6 +66,6 @@ export function useBlockEditingMode( mode ) { unsetBlockEditingMode( clientId ); } }; - }, [ clientId, mode ] ); + }, [ clientId, mode, setBlockEditingMode, unsetBlockEditingMode ] ); return blockEditingMode; }