fix: #1707 refech interval app pings

This commit is contained in:
Manuel
2024-08-04 17:20:07 +02:00
parent c042c245a3
commit b940f623ce

View File

@@ -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)