Skip to content

Commit

Permalink
Merge pull request #6011 from thornbill/fix-network-mode
Browse files Browse the repository at this point in the history
Fix network mode for localhost server
  • Loading branch information
thornbill authored Sep 3, 2024
2 parents 2ebf0c9 + 838e14e commit b9925eb
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 b9925eb

Please sign in to comment.