Skip to content

Commit

Permalink
Block Editor: Fix ZoomOutModeInserters dependencies (WordPress#61908)
Browse files Browse the repository at this point in the history
Co-authored-by: tyxla <[email protected]>
Co-authored-by: ellatrix <[email protected]>
Co-authored-by: Mamaduka <[email protected]>
  • Loading branch information
4 people authored and patil-vipul committed Jun 17, 2024
1 parent 48a32a6 commit 90abc5b
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 90abc5b

Please sign in to comment.