mirror of
https://github.com/hamster1963/nezha-dash.git
synced 2025-04-24 21:10:45 +08:00
fix: set dedupingInterval to 500
This commit is contained in:
parent
6b52a8dedb
commit
a9a7a367c0
@ -27,7 +27,7 @@ export function ServerDataProvider({ children }: { children: ReactNode }) {
|
||||
|
||||
const { data, error, isLoading } = useSWR<ServerApi>("/api/server", nezhaFetcher, {
|
||||
refreshInterval: Number(getEnv("NEXT_PUBLIC_NezhaFetchInterval")) || 2000,
|
||||
dedupingInterval: 1000,
|
||||
dedupingInterval: 500,
|
||||
})
|
||||
|
||||
useEffect(() => {
|
||||
|
Loading…
Reference in New Issue
Block a user