From 65f75016bebaa8b941b0bb586d8ffc12f60baa24 Mon Sep 17 00:00:00 2001 From: melloware Date: Mon, 20 May 2024 08:29:12 -0400 Subject: [PATCH] Fix #6639: VirtualScroller compare using deepEquals --- components/lib/virtualscroller/VirtualScroller.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/components/lib/virtualscroller/VirtualScroller.js b/components/lib/virtualscroller/VirtualScroller.js index 349915172a..39648e8677 100644 --- a/components/lib/virtualscroller/VirtualScroller.js +++ b/components/lib/virtualscroller/VirtualScroller.js @@ -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(); }