From 838e14e89fc2a0775753d141c6b99ae986339cdd Mon Sep 17 00:00:00 2001 From: Bill Thornton Date: Tue, 3 Sep 2024 09:59:39 -0400 Subject: [PATCH] Fix network mode for localhost server --- src/utils/query/queryClient.ts | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/src/utils/query/queryClient.ts b/src/utils/query/queryClient.ts index 6d46de5917..00361716a1 100644 --- a/src/utils/query/queryClient.ts +++ b/src/utils/query/queryClient.ts @@ -1,3 +1,12 @@ import { QueryClient } from '@tanstack/react-query'; -export const queryClient = new QueryClient(); +export const queryClient = new QueryClient({ + defaultOptions: { + mutations: { + networkMode: 'always' // network connection is not required if running on localhost + }, + queries: { + networkMode: 'always' // network connection is not required if running on localhost + } + } +});