Skip to content

Commit

Permalink
Block Editor: Improve getBlockInsertionPoint memoization (#47489)
Browse files Browse the repository at this point in the history
* Block Editor: Improve getBlockInsertionPoint memoization

* Keep entire insertionPoint object as dependent
  • Loading branch information
tyxla authored Jan 27, 2023
1 parent ede6e36 commit 7fb41fc
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/block-editor/src/store/selectors.js
Original file line number Diff line number Diff line change
Expand Up @@ -1403,7 +1403,7 @@ export const getBlockInsertionPoint = createSelector(
},
( state ) => [
state.insertionPoint,
state.selection.selectionEnd,
state.selection.selectionEnd.clientId,
state.blocks.parents,
state.blocks.order,
]
Expand Down

1 comment on commit 7fb41fc

@github-actions
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Flaky tests detected in 7fb41fc.
Some tests passed with failed attempts. The failures may not be related to this commit but are still reported for visibility. See the documentation for more information.

🔍 Workflow run URL: https://github.com/WordPress/gutenberg/actions/runs/4024113176
📝 Reported issues:

Please sign in to comment.