mirror of
https://github.com/ajnart/homarr.git
synced 2026-01-21 15:02:29 +01:00
fix: #1707 refech interval app pings
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user