From 95363be7d12c72159ea1fce27c87011faee124cf Mon Sep 17 00:00:00 2001 From: Brendan Allan Date: Fri, 30 Jun 2023 02:13:55 +0200 Subject: [PATCH] Allow desktop to work offline (#1057) allow desktop to work offline --- apps/desktop/src/App.tsx | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/apps/desktop/src/App.tsx b/apps/desktop/src/App.tsx index deaa9e7c5..eff207b5c 100644 --- a/apps/desktop/src/App.tsx +++ b/apps/desktop/src/App.tsx @@ -77,7 +77,16 @@ const platform: Platform = { ...commands }; -const queryClient = new QueryClient(); +const queryClient = new QueryClient({ + defaultOptions: { + queries: { + networkMode: 'always' + }, + mutations: { + networkMode: 'always' + } + } +}); const router = createBrowserRouter(routes);