Skip to content

Commit

Permalink
Remove change to hover dependencies
Browse files Browse the repository at this point in the history
  • Loading branch information
talldan committed Jun 28, 2023
1 parent 477f533 commit 62b0996
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -171,7 +171,7 @@ export function BlockPatternsCategoryPanel( {
const categoryPatternsList = useAsyncList( currentCategoryPatterns );

// Hide block pattern preview on unmount.
useEffect( () => () => onHover( null ), [ onHover ] );
useEffect( () => () => onHover( null ), [] );

if ( ! currentCategoryPatterns.length ) {
return null;
Expand Down

0 comments on commit 62b0996

Please sign in to comment.