Skip to content

Commit

Permalink
Fix network mode for localhost server
Browse files Browse the repository at this point in the history
  • Loading branch information
thornbill committed Sep 3, 2024
1 parent b9760ea commit 838e14e
Showing 1 changed file with 10 additions and 1 deletion.
11 changes: 10 additions & 1 deletion src/utils/query/queryClient.ts
Original file line number Diff line number Diff line change
@@ -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
}
}
});

0 comments on commit 838e14e

Please sign in to comment.