Skip to content

Commit

Permalink
Staging (#661)
Browse files Browse the repository at this point in the history
* fixed payment status lost code during merge conflict

* refresh on window change fixed
  • Loading branch information
subru-37 authored Jan 21, 2025
1 parent f0419e8 commit 7587d08
Showing 1 changed file with 9 additions and 1 deletion.
10 changes: 9 additions & 1 deletion apps/web-admin/src/pages/_app.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,15 @@ import 'react-day-picker/dist/style.css';
import '../styles/globals.css';
// import '@uiw/react-md-editor/markdown-editor.css';
import { QueryClient, QueryClientProvider } from 'react-query';
const queryClient = new QueryClient();
const queryClient = new QueryClient({
defaultOptions: {
queries: {
refetchOnWindowFocus: false, // Disable refetch on window focus globally
refetchOnReconnect: false, // Prevent refetch on network reconnect
staleTime: 5 * 60 * 1000, // Set data as fresh for 5 minutes
},
},
});

const theme = extendTheme({
...withDefaultColorScheme({
Expand Down

0 comments on commit 7587d08

Please sign in to comment.