mirror of
https://github.com/clash-verge-rev/clash-verge-rev.git
synced 2026-11-05 16:22:08 +08:00
refactor(frontend): remove unused modules
This commit is contained in:
@@ -1,35 +0,0 @@
|
||||
const SWR_NOT_SMART = {
|
||||
revalidateOnFocus: false,
|
||||
revalidateOnReconnect: false,
|
||||
revalidateIfStale: false,
|
||||
suspense: false,
|
||||
errorRetryCount: 2,
|
||||
dedupingInterval: 1500,
|
||||
errorRetryInterval: 3000,
|
||||
} as const
|
||||
|
||||
export const SWR_DEFAULTS = {
|
||||
revalidateOnFocus: false,
|
||||
revalidateOnReconnect: false,
|
||||
suspense: false,
|
||||
errorRetryCount: 2,
|
||||
dedupingInterval: 5000,
|
||||
} as const
|
||||
|
||||
export const SWR_SLOW_POLL = {
|
||||
...SWR_DEFAULTS,
|
||||
refreshInterval: 60000,
|
||||
} as const
|
||||
|
||||
export const SWR_MIHOMO = {
|
||||
...SWR_NOT_SMART,
|
||||
errorRetryInterval: 2000,
|
||||
errorRetryCount: 3,
|
||||
}
|
||||
|
||||
export const SWR_EXTERNAL_API = {
|
||||
...SWR_NOT_SMART,
|
||||
shouldRetryOnError: true,
|
||||
errorRetryCount: 1,
|
||||
errorRetryInterval: 30_000,
|
||||
} as const
|
||||
Reference in New Issue
Block a user