perf(proxies): reduce delay-driven list and card churn (#8621)

* perf(proxies): reduce delay-driven list and card churn

* remove test

* no need changelog
This commit is contained in:
Tunglies
2026-11-17 02:26:00 +00:00
committed by GitHub
parent 0c2de711bc
commit 9f7b390cd4
5 changed files with 96 additions and 34 deletions
+5 -3
View File
@@ -469,12 +469,14 @@ function NormalProxyGroups(props: { mode: string }) {
}
}, [handleScroll])
const { select } = useProxySelection({
onError: (error) => {
const onSelectionError = useCallback(
(error: unknown) => {
console.error('代理切换失败', error)
onProxies()
},
})
[onProxies],
)
const { select } = useProxySelection({ onError: onSelectionError })
const handleChangeProxy = useCallback(
(group: ProxyGroupView, member: ResolvedProxyMember) => {