perf: improve proxy status indicator and toggle responsiveness

This commit is contained in:
wonfen
2025-06-23 12:59:24 +08:00
parent 628de70e89
commit d5a174c71b
5 changed files with 110 additions and 104 deletions

View File

@@ -68,7 +68,7 @@ export const AppDataProvider = ({
getProxies,
{
refreshInterval: 5000,
revalidateOnFocus: false,
revalidateOnFocus: true,
suspense: false,
errorRetryCount: 3,
},
@@ -243,7 +243,8 @@ export const AppDataProvider = ({
"getSystemProxy",
getSystemProxy,
{
revalidateOnFocus: false,
revalidateOnFocus: true,
revalidateOnReconnect: true,
suspense: false,
errorRetryCount: 3,
},