From b940f623cedd0d5529e2ac4ed3d4b87622fb995b Mon Sep 17 00:00:00 2001 From: Manuel Date: Sun, 4 Aug 2024 17:20:07 +0200 Subject: [PATCH] fix: #1707 refech interval app pings --- src/components/Dashboard/Tiles/Apps/AppPing.tsx | 10 ++-------- 1 file changed, 2 insertions(+), 8 deletions(-) diff --git a/src/components/Dashboard/Tiles/Apps/AppPing.tsx b/src/components/Dashboard/Tiles/Apps/AppPing.tsx index be58ec2ea..7afabf673 100644 --- a/src/components/Dashboard/Tiles/Apps/AppPing.tsx +++ b/src/components/Dashboard/Tiles/Apps/AppPing.tsx @@ -111,15 +111,9 @@ const usePing = (app: AppType) => { retry: false, enabled: isActive, refetchOnWindowFocus: false, - retryDelay(failureCount, error) { - // TODO: Add logic to retry on timeout - return 3000; - }, - // 5 minutes of cache - cacheTime: 1000 * 60 * 5, - staleTime: 1000 * 60 * 5, + refetchInterval: 1000 * 60, + cacheTime: 1000 * 30, retryOnMount: true, - select: (data) => { const isOk = isStatusOk(app, data.status); if (isOk)