Skip to content

Commit

Permalink
F
Browse files Browse the repository at this point in the history
  • Loading branch information
Collection50 committed Aug 24, 2024
1 parent 8748cae commit ae2fa0c
Showing 1 changed file with 2 additions and 8 deletions.
10 changes: 2 additions & 8 deletions src/lib/QueryProvider/QueryProvider.tsx
Original file line number Diff line number Diff line change
@@ -1,9 +1,8 @@
'use client';

import { QueryClient, QueryClientProvider } from '@tanstack/react-query';
import { ReactQueryDevtools } from '@tanstack/react-query-devtools';
import { useState } from 'react';
import type { PropsWithChildren } from 'react';
import { QueryClient, QueryClientProvider } from '@tanstack/react-query';
import type { QueryClientConfig } from '@tanstack/react-query';

const queryClientOption: QueryClientConfig = {
Expand All @@ -22,10 +21,5 @@ const queryClientOption: QueryClientConfig = {
export function QueryProvider({ children }: PropsWithChildren) {
const [queryClient] = useState(() => new QueryClient(queryClientOption));

return (
<QueryClientProvider client={queryClient}>
{children}
<ReactQueryDevtools />
</QueryClientProvider>
);
return <QueryClientProvider client={queryClient}>{children}</QueryClientProvider>;
}

0 comments on commit ae2fa0c

Please sign in to comment.