fix: keep home current proxy in sync

This commit is contained in:
Tunglies
2026-06-13 21:20:52 +08:00
parent 55ce7bffe4
commit 658312fe7b
2 changed files with 4 additions and 24 deletions
+3 -1
View File
@@ -139,6 +139,8 @@ export const AppDataProvider = ({
lastProfileId = newProfileId
lastUpdateTime = now
void queryClient.invalidateQueries({ queryKey: ['getProfiles'] })
refreshProxy().catch(() => {})
refreshProxyProviders().catch(() => {})
refreshRules().catch(() => {})
refreshRuleProviders().catch(() => {})
}
@@ -183,7 +185,7 @@ export const AppDataProvider = ({
}
})
}
}, [refreshProxy, refreshRules, refreshRuleProviders])
}, [refreshProxy, refreshProxyProviders, refreshRules, refreshRuleProviders])
const refreshAll = useCallback(async () => {
await Promise.all([