Skip to content

Commit

Permalink
Add missing useSelect dependency
Browse files Browse the repository at this point in the history
  • Loading branch information
Copons committed Mar 18, 2021
1 parent 68ebe35 commit 40364c9
Showing 1 changed file with 3 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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 );

Expand Down

0 comments on commit 40364c9

Please sign in to comment.