mirror of
https://gh.catmak.name/https://github.com/mihomo-party-org/mihomo-party
synced 2025-12-27 05:00:30 +08:00
fix: auto-update latency test results in UI without requiring any click
This commit is contained in:
parent
77b67849ed
commit
35c239e02d
@ -12,7 +12,8 @@ const GroupsContext = createContext<GroupsContextType | undefined>(undefined)
|
|||||||
export const GroupsProvider: React.FC<{ children: ReactNode }> = ({ children }) => {
|
export const GroupsProvider: React.FC<{ children: ReactNode }> = ({ children }) => {
|
||||||
const { data: groups, mutate } = useSWR<IMihomoMixedGroup[]>('mihomoGroups', mihomoGroups, {
|
const { data: groups, mutate } = useSWR<IMihomoMixedGroup[]>('mihomoGroups', mihomoGroups, {
|
||||||
errorRetryInterval: 200,
|
errorRetryInterval: 200,
|
||||||
errorRetryCount: 10
|
errorRetryCount: 10,
|
||||||
|
refreshInterval: 1000
|
||||||
})
|
})
|
||||||
|
|
||||||
React.useEffect(() => {
|
React.useEffect(() => {
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user