Skip to content

Commit

Permalink
perf(ui): optimizing virtual-scroll
Browse files Browse the repository at this point in the history
  • Loading branch information
xiejay97 committed Aug 9, 2022
1 parent 0a4c3a6 commit cce0e71
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion packages/ui/src/components/virtual-scroll/VirtualScroll.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -183,7 +183,9 @@ function VirtualScroll<T>(props: DVirtualScrollProps<T>, ref: React.ForwardedRef
key = dItemKey(item);
size = getItemSize(item);
nestedList = dItemNested?.(item)?.list;
childrenSize = itemsMap.get(key)!.nestedSize;
if (nestedList) {
childrenSize = itemsMap.get(key)!.nestedSize;
}
}

if (hasEnd) {
Expand Down

0 comments on commit cce0e71

Please sign in to comment.