Skip to content

Commit

Permalink
Block Editor: Fix ZoomOutModeInserters dependencies
Browse files Browse the repository at this point in the history
  • Loading branch information
tyxla committed May 23, 2024
1 parent f49e0b5 commit 9aa58b8
Showing 1 changed file with 1 addition and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -51,8 +51,7 @@ function ZoomOutModeInserters() {
}
// reset insertion point when the block order changes
setInserterIsOpened( true );
// eslint-disable-next-line react-hooks/exhaustive-deps
}, [ blockOrder ] );
}, [ blockOrder, setInserterIsOpened ] );

// Defer the initial rendering to avoid the jumps due to the animation.
useEffect( () => {
Expand Down

0 comments on commit 9aa58b8

Please sign in to comment.