Skip to content

Commit

Permalink
chore: provider queryClient 위치 변경
Browse files Browse the repository at this point in the history
  • Loading branch information
saseungmin committed Aug 22, 2024
1 parent 5cf44f7 commit 24826ec
Showing 1 changed file with 9 additions and 9 deletions.
18 changes: 9 additions & 9 deletions src/app/providers.tsx
Original file line number Diff line number Diff line change
@@ -1,20 +1,20 @@
'use client';

import { ReactNode, useState } from 'react';
import { ReactNode } from 'react';

import { useResizeViewportHeight } from '@nf-team/react';
import { QueryClient, QueryClientProvider } from '@tanstack/react-query';

function Providers({ children }: { children: ReactNode }) {
const [queryClient] = useState(() => new QueryClient({
defaultOptions: {
queries: {
retry: false,
refetchOnWindowFocus: false,
},
const queryClient = new QueryClient({
defaultOptions: {
queries: {
retry: false,
refetchOnWindowFocus: false,
},
}));
},
});

function Providers({ children }: { children: ReactNode }) {
useResizeViewportHeight();

return (
Expand Down

0 comments on commit 24826ec

Please sign in to comment.