import * as React from 'react' ; import { QueryClient , QueryClientProvider } from 'react-query' ; const queryClient = new QueryClient ( { defaultOptions : { queries : { refetchOnWindowFocus : false , } , } , } ) ; export interface ApiClientProviderProps { children ? : React . ReactNode ; } export function ApiClientProvider ( props ) { return ( < QueryClientProvider client = { queryClient } > { props . children } < /QueryClientProvider>); }