Skip to content

Commit

Permalink
Make sure the hook name starts with a letter
Browse files Browse the repository at this point in the history
  • Loading branch information
ellatrix committed Mar 7, 2023
1 parent 724a151 commit 49e6aa6
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion packages/block-editor/src/components/block-edit/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit 49e6aa6

Please sign in to comment.