client: update query options

This commit is contained in:
fantasticit 2022-05-25 09:37:34 +08:00
parent 0f3e1fc2dc
commit c0edbf320c
1 changed files with 2 additions and 2 deletions

View File

@ -16,10 +16,10 @@ class MyApp extends App<{ isMobile: boolean }> {
queryClient: new QueryClient({
defaultOptions: {
queries: {
refetchOnMount: false,
refetchOnMount: true,
refetchOnWindowFocus: true,
retry: false,
staleTime: 30000,
staleTime: 10 * 1000, // 默认 10s 数据过期
},
},
}),