diff --git a/src/utils/query/queryClient.ts b/src/utils/query/queryClient.ts index 6d46de5917b..00361716a1b 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 + } + } +});