Skip to content

Commit

Permalink
Zoom out: Get store action outside the loop (#63936)
Browse files Browse the repository at this point in the history
Co-authored-by: Mamaduka <[email protected]>
  • Loading branch information
Mamaduka and Mamaduka authored Jul 25, 2024
1 parent 4af798f commit 3336ee9
Showing 1 changed file with 1 addition and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ function ZoomOutModeInserters() {
};
}, [] );

const blockEditorDispatch = useDispatch( blockEditorStore );
const { showInsertionPoint } = useDispatch( blockEditorStore );

// Defer the initial rendering to avoid the jumps due to the animation.
useEffect( () => {
Expand Down Expand Up @@ -79,8 +79,6 @@ function ZoomOutModeInserters() {
hoveredBlockClientId === previousClientId ||
hoveredBlockClientId === nextClientId;

const { showInsertionPoint } = blockEditorDispatch;

return (
<BlockPopoverInbetween
key={ index }
Expand Down

0 comments on commit 3336ee9

Please sign in to comment.