Skip to content

Commit

Permalink
feat: staleTime, gcTime μ„€μ • (#607)
Browse files Browse the repository at this point in the history
  • Loading branch information
jinhokim98 authored and Todari committed Oct 2, 2024
1 parent f634087 commit 410c306
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 410c306

Please sign in to comment.