mirror of
https://github.com/clash-verge-rev/clash-verge-rev.git
synced 2026-10-30 10:42:09 +08:00
perf(proxies): optimize virtual list scrolling
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user