Skip to content

Commit

Permalink
Fix #6639: VirtualScroller compare using deepEquals
Browse files Browse the repository at this point in the history
  • Loading branch information
melloware committed May 20, 2024
1 parent 69aed63 commit 65f7501
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion components/lib/virtualscroller/VirtualScroller.js
Original file line number Diff line number Diff line change
Expand Up @@ -568,7 +568,7 @@ export const VirtualScroller = React.memo(
}, [numToleratedItemsState]);

useUpdateEffect(() => {
if (!prevProps.items || prevProps.items.length !== (props.items || []).length) {
if (!prevProps.items || !ObjectUtils.deepEquals(prevProps.items, props.items)) {
init();
}

Expand Down

0 comments on commit 65f7501

Please sign in to comment.