From 2ba79b915c0e0e3d0e8bcafa6fce2283e70c57ef Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Imobach=20Gonz=C3=A1lez=20Sosa?= Date: Fri, 31 Jan 2025 09:56:08 +0100 Subject: [PATCH] fix(web): set mutations network mode to "always" --- web/src/context/app.tsx | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/web/src/context/app.tsx b/web/src/context/app.tsx index 339450901f..4bf3cb2646 100644 --- a/web/src/context/app.tsx +++ b/web/src/context/app.tsx @@ -39,11 +39,14 @@ const networkMode = (): "always" | "online" => { return localConnection() ? "always" : "online"; }; +const sharedOptions = { + networkMode: networkMode(), +}; + const queryClient = new QueryClient({ defaultOptions: { - queries: { - networkMode: networkMode(), - }, + queries: sharedOptions, + mutations: sharedOptions, }, });