Skip to content

Commit

Permalink
Block Editor: Improve getBlockInsertionPoint memoization
Browse files Browse the repository at this point in the history
  • Loading branch information
tyxla committed Jan 27, 2023
1 parent a535560 commit ed18db3
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions packages/block-editor/src/store/selectors.js
Original file line number Diff line number Diff line change
Expand Up @@ -1402,8 +1402,11 @@ export const getBlockInsertionPoint = createSelector(
return { rootClientId, index };
},
( state ) => [
state.insertionPoint,
state.selection.selectionEnd,
state.insertionPoint?.rootClientId,
state.insertionPoint?.index,
state.insertionPoint?.__unstableWithInserter,
state.insertionPoint?.operation,
state.selection.selectionEnd.clientId,
state.blocks.parents,
state.blocks.order,
]
Expand Down

0 comments on commit ed18db3

Please sign in to comment.