mirror of https://github.com/fantasticit/think.git
client: update query options
This commit is contained in:
parent
0f3e1fc2dc
commit
c0edbf320c
|
@ -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 数据过期
|
||||
},
|
||||
},
|
||||
}),
|
||||
|
|
Loading…
Reference in New Issue