Skip to content

Commit

Permalink
feat(ui): Refresh current statistics every 30s
Browse files Browse the repository at this point in the history
  • Loading branch information
Hypfer authored and elraro committed May 22, 2023
1 parent 020b8f3 commit 89d952f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions frontend/src/api/hooks.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1121,8 +1121,8 @@ export const useUpdaterCommandMutation = () => {

export const useCurrentStatisticsQuery = () => {
return useQuery(CacheKey.CurrentStatistics, fetchCurrentStatistics , {
staleTime: 60_000,
refetchInterval: 60_000
staleTime: 30_000,
refetchInterval: 30_000
});
};

Expand Down

0 comments on commit 89d952f

Please sign in to comment.