Archilyzer · Source

archilyzer

Archilyzer
git clone https://archilyzer.pages.dev/source/archilyzer.git
Log | Files | Refs | README | LICENSE

commit 310189c1176aa0c8416bbf7e56d1166d089b1cc2
parent 46c2fcdb77d7282daf5e3fbf0db224c2de5d3c23
Author: I Mean I'm Just Saying <imeanimjustsaying@kiwifarms.st>
Date:   Sat, 26 Sep 2026 03:33:04 -0400

hub: useHubSummary runs with networkMode "always" (review fix 3)

TanStack's default "online" mode pauses a query started while the browser
reports itself offline, leaving hub-summary pending and the official
instances unlisted until the connection returns. The fetch never throws,
so offline it now settles at once as "no summary".

Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>

Diffstat:
Mexport/app/components/hub/useHubSummary.ts | 5+++++
1 file changed, 5 insertions(+), 0 deletions(-)

diff --git a/export/app/components/hub/useHubSummary.ts b/export/app/components/hub/useHubSummary.ts @@ -36,6 +36,11 @@ export function useHubSummary(): { queryFn: fetchHubSummary, staleTime: Infinity, retry: false, + // Always run it, even while the browser reports itself offline: TanStack's + // default ("online") would PAUSE the query then, leaving it pending and the + // official instances unlisted until the connection returned. The fetch + // never throws — offline it settles at once as "no summary". + networkMode: "always", }); return { summary: data ?? null, settled: !isPending }; }