From 49e6aa623356fc47ef444a63b5075c8985dc592e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ella=20van=C2=A0Durpe?= Date: Tue, 7 Mar 2023 14:59:26 +0200 Subject: [PATCH] Make sure the hook name starts with a letter --- packages/block-editor/src/components/block-edit/index.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/packages/block-editor/src/components/block-edit/index.js b/packages/block-editor/src/components/block-edit/index.js index 553c467783f727..311ac80a3a4070 100644 --- a/packages/block-editor/src/components/block-edit/index.js +++ b/packages/block-editor/src/components/block-edit/index.js @@ -30,7 +30,8 @@ import { store as blockEditorStore } from '../../store'; export { useBlockEditContext }; // Please do not export this at the package level until we have a stable API. -export const blockControlsFilterName = uuid(); +// Hook names must start with a letter. +export const blockControlsFilterName = 'a' + uuid(); function BlockControlFilters( props ) { const { name, isSelected, clientId } = props;