We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 6f5713d commit bc3550dCopy full SHA for bc3550d
src/hooks/wrapper.tsx
@@ -10,6 +10,8 @@ const Wrapper = ({ children }: WrapperType) => {
10
const testQueryClient = new QueryClient({
11
defaultOptions: {
12
queries: {
13
+ // gcTime (previously cacheTime in v4) controls how long unused/inactive queries
14
+ // remain in memory. Set to 0 in tests to prevent caching between test runs.
15
gcTime: 0,
16
staleTime: 0,
17
retry: false,
0 commit comments