diff --git a/app/react-tools/react-query.ts b/app/react-tools/react-query.ts index 795557751..8ab6d611d 100644 --- a/app/react-tools/react-query.ts +++ b/app/react-tools/react-query.ts @@ -76,6 +76,11 @@ function mergeOptions(options: T[]) { export function createQueryClient() { return new QueryClient({ + defaultOptions: { + queries: { + networkMode: 'offlineFirst', + }, + }, mutationCache: new MutationCache({ onError: (error, variable, context, mutation) => { handleError(error, mutation.meta?.error);