mirror of
https://github.com/tooot-app/app
synced 2025-06-05 22:19:13 +02:00
Continue refine remote logic #638
This commit is contained in:
@ -1,6 +1,6 @@
|
||||
import { QueryClient } from '@tanstack/react-query'
|
||||
|
||||
const queryClient = new QueryClient({
|
||||
export const queryClient = new QueryClient({
|
||||
defaultOptions: {
|
||||
queries: {
|
||||
staleTime: 1000 * 60 * 5,
|
||||
@ -15,12 +15,10 @@ const queryClient = new QueryClient({
|
||||
}
|
||||
}
|
||||
}
|
||||
},
|
||||
logger: {
|
||||
log: log => console.log(log),
|
||||
warn: () => {},
|
||||
error: () => {}
|
||||
}
|
||||
})
|
||||
|
||||
// @ts-ignore
|
||||
import('react-query-native-devtools').then(({ addPlugin }) => {
|
||||
addPlugin({ queryClient })
|
||||
})
|
||||
|
||||
export default queryClient
|
||||
|
Reference in New Issue
Block a user