perf: memoize the proxy col items (#1029)

This commit is contained in:
oomeow
2024-05-18 15:14:22 +08:00
committed by GitHub
parent db5d14e0ce
commit 43f0b935cf
2 changed files with 15 additions and 12 deletions

View File

@@ -122,7 +122,7 @@ export const ProxyGroups = (props: Props) => {
return (
<Virtuoso
ref={virtuosoRef}
style={{ height: "calc(100% - 12px)" }}
style={{ height: "calc(100% - 16px)" }}
totalCount={renderList.length}
increaseViewportBy={256}
itemContent={(index) => (