react-native-template-by-nh
Version:
React Native Template for a quick start with TypeScript using best existing libraries and scalable structure
15 lines (13 loc) • 340 B
text/typescript
import {QueryClient} from '@tanstack/react-query';
/**
* @description `queryClient` is an instance of QueryClient we should
* only use a single one.
*/
export const queryClient = new QueryClient({
defaultOptions: {
queries: {
// Will retry failed requests 3 times before displaying an error.
retry: 3,
},
},
});