From d4277a35fa1ac90fa94e422a5f7d29095ae622c1 Mon Sep 17 00:00:00 2001 From: James Date: Sun, 8 Oct 2023 11:47:36 +0100 Subject: [PATCH] reduce overscan (#15) --- components/object-explorer/explorer.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/components/object-explorer/explorer.tsx b/components/object-explorer/explorer.tsx index b6222fe..6eadf4a 100644 --- a/components/object-explorer/explorer.tsx +++ b/components/object-explorer/explorer.tsx @@ -183,7 +183,7 @@ export const ObjectExplorer = ({ initialObjects, initialCursor }: Props): JSX.El count: rows.length, // Should this track some sort of count from R2? estimateSize: () => (isGridView ? grid.height : 40), getScrollElement: useCallback(() => parentRef.current, []), - overscan: 25, + overscan: 5, }); const columnVirtualizer = useVirtualizer({