commit 4eaec26e130aa1a38e41d457e1382d063772e4b7
parent 8b7a4c4724c0f874b1cdc0b236ca6b715fd50d0d
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:
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 };
}