Skip to content

Commit

Permalink
fix(web): set mutations network mode to "always"
Browse files Browse the repository at this point in the history
  • Loading branch information
imobachgs committed Jan 31, 2025
1 parent 2ed0085 commit 2ba79b9
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions web/src/context/app.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -39,11 +39,14 @@ const networkMode = (): "always" | "online" => {
return localConnection() ? "always" : "online";
};

const sharedOptions = {
networkMode: networkMode(),
};

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

Expand Down

0 comments on commit 2ba79b9

Please sign in to comment.