bigbuffet-rw/app/soapbox/queries/__mocks__/client.ts
2022-10-28 13:01:39 -04:00

19 lines
363 B
TypeScript

import { QueryClient } from '@tanstack/react-query';
const queryClient = new QueryClient({
logger: {
// eslint-disable-next-line no-console
log: console.log,
warn: console.warn,
error: () => { },
},
defaultOptions: {
queries: {
staleTime: 0,
cacheTime: Infinity,
retry: false,
},
},
});
export { queryClient };