You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

QueryProvider.tsx 403B

12345678910111213141516
  1. 'use client';
  2. import { QueryClient, QueryClientProvider } from '@tanstack/react-query';
  3. import { ReactNode, useState } from 'react';
  4. const QueryProvider = ({ children }: { children: ReactNode }) => {
  5. const [queryClient] = useState(() => new QueryClient());
  6. return (
  7. <QueryClientProvider client={queryClient}>
  8. {children}
  9. </QueryClientProvider>
  10. );
  11. };
  12. export default QueryProvider;