Skip to content

Commit

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

* refresh on window change fixed

* reverted to normal mode for react-query
  • Loading branch information
subru-37 authored Jan 22, 2025
1 parent 7587d08 commit e46779c
Showing 1 changed file with 8 additions and 9 deletions.
17 changes: 8 additions & 9 deletions apps/web-admin/src/pages/_app.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -8,15 +8,14 @@ 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({
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 queryClient = new QueryClient();
// defaultOptions: {
// queries: {
// refetchOnWindowFocus: true, // Disable refetch on window focus globally
// refetchOnReconnect: true, // Prevent refetch on network reconnect
// staleTime: 60 * 1000, // Set data as fresh for 1 minute
// },
// },

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

0 comments on commit e46779c

Please sign in to comment.