refactor: simplify request handlers and deduplicate config

- Re-enable TanStack Query retry (retry: 3 with exponential backoff),
  delete all server-side retry logic from request handlers
- Strip handler factories to bare minimum: remove isValid, retry, widgetKind
- Remove redundant refetchOnWindowFocus/refetchOnReconnect from docker-table
- Deduplicate queryCacheMaxValueBytes (pass as param, single source of truth)
- Simplify system-resources chart: use dataUpdatedAt instead of ref-based tracking
- Fix leading blank lines in 27 request handler files
This commit is contained in:
Thomas Camlong committed 2026-06-25 11:06:03 +02:00
1 parent a164c951ce
commit 5581b6db94
15 files changed
+36 -114

No files matched your search

-3
View File
@@ -73,7 +73,6 @@ export const beszelSystemsRequestHandler = createIntegrationRequestHandler<
});
return enriched;
},
retry: { attempts: 2, delayMs: 500 },
queryKey: "beszelSystems",
});
@@ -100,7 +99,6 @@ export const beszelAlertsRequestHandler = createIntegrationRequestHandler<
});
return { alerts, history };
},
retry: { attempts: 2, delayMs: 500 },
queryKey: "beszelAlerts",
});
@@ -141,6 +139,5 @@ export const beszelStatsRequestHandler = createIntegrationRequestHandler<
});
return { systemStats, containerStats };
},
retry: { attempts: 2, delayMs: 500 },
queryKey: "beszelStats",
});