bigbuffet-rw/app/soapbox/queries/__mocks__/client.ts

20 lines
363 B
TypeScript
Raw Normal View History

2022-10-28 10:01:39 -07:00
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 };