Skip to content

Commit

Permalink
Merge pull request #297 from BCSDLab/fix/#296/modify-queryClient
Browse files Browse the repository at this point in the history
[공통] 데이터가 stale일때 refetch 되도록 수정
  • Loading branch information
chaeseungyun authored Apr 20, 2024
2 parents 258c601 + 3f7fcf7 commit 2365a74
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -15,9 +15,9 @@ const root = ReactDOM.createRoot(
const queryClient = new QueryClient({
defaultOptions: {
queries: {
refetchOnWindowFocus: false,
refetchOnMount: false,
refetchOnReconnect: false,
refetchOnWindowFocus: true,
refetchOnMount: true,
refetchOnReconnect: true,
retry: 1,
staleTime: 1000 * 60 * 5,
throwOnError: (err) => err instanceof ZodError,
Expand Down

0 comments on commit 2365a74

Please sign in to comment.