fix: auto-update latency test results in UI without requiring any click

This commit is contained in:
pompurin404 2025-02-03 07:42:04 +08:00
parent 77b67849ed
commit 35c239e02d

View File

@ -12,7 +12,8 @@ const GroupsContext = createContext<GroupsContextType | undefined>(undefined)
export const GroupsProvider: React.FC<{ children: ReactNode }> = ({ children }) => {
const { data: groups, mutate } = useSWR<IMihomoMixedGroup[]>('mihomoGroups', mihomoGroups, {
errorRetryInterval: 200,
errorRetryCount: 10
errorRetryCount: 10,
refreshInterval: 1000
})
React.useEffect(() => {