refactor(shared): extraire QueryClient dans shared/lib/query-client.ts
This commit is contained in:
parent
7f552dcdd1
commit
94731edafc
2 changed files with 12 additions and 10 deletions
10
src/shared/lib/query-client.ts
Normal file
10
src/shared/lib/query-client.ts
Normal file
|
|
@ -0,0 +1,10 @@
|
|||
import { QueryClient } from '@tanstack/react-query'
|
||||
|
||||
export const queryClient = new QueryClient({
|
||||
defaultOptions: {
|
||||
queries: {
|
||||
staleTime: 5 * 60 * 1000,
|
||||
retry: false,
|
||||
},
|
||||
},
|
||||
})
|
||||
Loading…
Add table
Add a link
Reference in a new issue