import { QueryClient , QueryClientProvider } from 'react-query' ; import React , { ReactElement } from 'react' ; const queryClient = new QueryClient ( { defaultOptions : { queries : { retry : false , refetchOnWindowFocus : false , onError : ( error ) => { console . error ( error ) ; } , } , } , } ) ; export const OriginQueryClientProvider = ( { children , } ) => { return ( < QueryClientProvider client = { queryClient } > { children } < /QueryClientProvider>); } ;