perf(feed): reduce Virtuoso overscan and memoize itemContent for multiboard views

This commit is contained in:
plebeius
2026-02-26 17:27:58 +08:00
parent 6ac9ac0ee7
commit 6e08203ce6
3 changed files with 9 additions and 7 deletions
+1 -1
View File
@@ -503,7 +503,7 @@ const Catalog = ({ feedCacheKey, viewType, boardIdentifier: boardIdentifierProp,
<>
<Virtuoso
defaultItemHeight={imageSize === 'Large' ? 320 : 200}
increaseViewportBy={{ bottom: 1200, top: 1200 }}
increaseViewportBy={isInAllView || isInSubscriptionsView || isInModView ? { bottom: 600, top: 600 } : { bottom: 1200, top: 1200 }}
totalCount={rows?.length || 0}
data={rows}
itemContent={(index, row) => <CatalogRow index={index} row={row} />}