Skip to content

Commit

Permalink
feat: set network mode to always
Browse files Browse the repository at this point in the history
  • Loading branch information
ledouxm committed Jun 28, 2024
1 parent ded244f commit 7b8f19f
Showing 1 changed file with 10 additions and 1 deletion.
11 changes: 10 additions & 1 deletion packages/frontend/src/main.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,16 @@ if ("serviceWorker" in navigator) {

startReactDsfr({ defaultColorScheme: "system", Link: Link });

const queryClient = new QueryClient();
const queryClient = new QueryClient({
defaultOptions:{
mutations: {
networkMode: "always"
},
queries: {
networkMode: "always"
}
}
});

ReactDOM.createRoot(document.getElementById("root")!).render(
<React.StrictMode>
Expand Down

0 comments on commit 7b8f19f

Please sign in to comment.