Skip to content

Commit

Permalink
feat: remove defaultOptions
Browse files Browse the repository at this point in the history
  • Loading branch information
gomesalexandre committed Jan 29, 2025
1 parent 6cd2265 commit ea4898b
Showing 1 changed file with 1 addition and 9 deletions.
10 changes: 1 addition & 9 deletions src/config/react-query.ts
Original file line number Diff line number Diff line change
@@ -1,11 +1,3 @@
import { QueryClient } from '@tanstack/react-query'

export const queryClient = new QueryClient({
defaultOptions: {
queries: {
staleTime: 1000 * 60 * 5, // 5 minutes
gcTime: 1000 * 60 * 60 * 24, // 24 hours
retry: 3,
},
},
})
export const queryClient = new QueryClient()

0 comments on commit ea4898b

Please sign in to comment.