From 43c2c20dd75afd890952b0b19216d2d0485fd513 Mon Sep 17 00:00:00 2001 From: Danny Avila Date: Fri, 26 Dec 2025 09:01:27 -0500 Subject: [PATCH] =?UTF-8?q?=F0=9F=9B=9C=20feat:=20Enable=20Network=20Reque?= =?UTF-8?q?sts=20in=20Offline=20Mode=20(#11107)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- client/src/App.jsx | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/client/src/App.jsx b/client/src/App.jsx index 23651d750c..fe280f7129 100644 --- a/client/src/App.jsx +++ b/client/src/App.jsx @@ -18,6 +18,16 @@ const App = () => { const { setError } = useApiErrorBoundary(); const queryClient = new QueryClient({ + defaultOptions: { + queries: { + // Always attempt network requests, even when navigator.onLine is false + // This is needed because localhost is reachable without WiFi + networkMode: 'always', + }, + mutations: { + networkMode: 'always', + }, + }, queryCache: new QueryCache({ onError: (error) => { if (error?.response?.status === 401) {