The communications platform that puts data protection first.
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
Rocket.Chat/apps/meteor/client/stories/contexts/QueryClientProviderMock.tsx

19 lines
494 B

import { QueryCache, QueryClient, QueryClientProvider } from '@tanstack/react-query';
import type { FC } from 'react';
import React from 'react';
const queryCache = new QueryCache();
const queryClient = new QueryClient({
defaultOptions: {
queries: {
retry: false,
cacheTime: Infinity,
},
},
queryCache,
});
const QueryClientProviderMock: FC = ({ children }) => <QueryClientProvider client={queryClient}>{children}</QueryClientProvider>;
export default QueryClientProviderMock;