mirror of
https://github.com/clash-verge-rev/clash-verge-rev.git
synced 2026-12-05 14:10:18 +08:00
fix: keep home current proxy in sync
This commit is contained in:
@@ -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([
|
||||
|
||||
Reference in New Issue
Block a user