Skip to content

Commit

Permalink
feat: staleTime, gcTime μ„€μ •
Browse files Browse the repository at this point in the history
  • Loading branch information
jinhokim98 committed Sep 24, 2024
1 parent 6afae59 commit e21f2f8
Showing 1 changed file with 5 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,11 @@ const QueryClientBoundary = ({children}: React.PropsWithChildren) => {
defaultOptions: {
queries: {
throwOnError: true,

staleTime: 1000 * 60, // 1 minute
gcTime: 1000 * 60, // 1 minute

refetchOnWindowFocus: false, // window focusκ°€ λ‹€μ‹œ 일어났을 λ•Œ refetchν•˜μ§€ μ•ŠμŒ
},
},
queryCache: new QueryCache({
Expand Down

0 comments on commit e21f2f8

Please sign in to comment.