import React from 'react' ; import { QueryClient , QueryClientProvider } from 'react-query' ; import { ReactQueryDevtools } from 'react-query/devtools' ; const queryClient = new QueryClient ( ) ; const ReactQueryProvider = ( { children } ) => ( < QueryClientProvider client = { queryClient } > { children } < ReactQueryDevtools initialIsOpen = { false } / > < /QueryClientProvider>); export default ReactQueryProvider ;