Skip to content

Commit

Permalink
fix: set dedupingInterval to 500
Browse files Browse the repository at this point in the history
  • Loading branch information
hamster1963 committed Dec 26, 2024
1 parent 6b52a8d commit a9a7a36
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/lib/server-data-context.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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(() => {
Expand Down

0 comments on commit a9a7a36

Please sign in to comment.