UNPKG

github-automated-repos

Version:

The library, ReactJS, that gives you the power to control / automate your GitHub data, your projects on the portfolio / website, in your own GitHub in one place!

14 lines (13 loc) 422 B
import { QueryClient, QueryClientProvider } from '@tanstack/react-query'; import React from 'react'; const queryClient = new QueryClient({ defaultOptions: { queries: { staleTime: 1000 * 60 * 5, refetchOnWindowFocus: false, }, }, }); export function ReactQueryProvider({ children }) { return React.createElement(QueryClientProvider, { client: queryClient }, children); }