fix(beszel): don't clear live data on transient connection errors
Keep showing existing charts during brief WebSocket reconnections instead of flashing the error UI. The error state only shows when no data was ever received (genuine initial connection failure).
This commit is contained in:
2 files changed
+40
-41
No files matched your search
@@ -37,7 +37,6 @@ export const useLiveStats = (integrationIds: string[], systemId: string, enabled
|
||||
);
|
||||
|
||||
const onError = useCallback((err: unknown) => {
|
||||
setData(null);
|
||||
setError(err instanceof Error ? err : new Error(String(err)));
|
||||
}, []);
|
||||
|
||||
|
||||
Reference in new issue
Block a user