perf(proxies): optimize virtual list scrolling

This commit is contained in:
Tunglies
2026-06-18 20:53:22 +08:00
parent f7ed126bb8
commit 4ee63b6cf2
2 changed files with 12 additions and 7 deletions
+3 -3
View File
@@ -13,7 +13,7 @@ import {
Chip,
Tooltip,
} from '@mui/material'
import { useMemo } from 'react'
import { memo, useMemo } from 'react'
import { useTranslation } from 'react-i18next'
import { useIconCache } from '@/hooks/use-icon-cache'
@@ -39,7 +39,7 @@ interface RenderProps {
) => void
}
export const ProxyRender = (props: RenderProps) => {
export const ProxyRender = memo(function ProxyRender(props: RenderProps) {
const { t } = useTranslation()
const {
indent,
@@ -227,7 +227,7 @@ export const ProxyRender = (props: RenderProps) => {
}
return null
}
})
const StyledPrimary = styled('span')`
font-size: 16px;