Skip to content

Commit a6edcc8

Browse files
committed
fix: profile qa 3차 반영
- queryclient 변경
1 parent 96b0ebb commit a6edcc8

File tree

2 files changed

+5
-18
lines changed

2 files changed

+5
-18
lines changed

apps/profile/src/App.tsx

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -16,8 +16,8 @@ import { Suspense } from 'react';
1616

1717
const router = createBrowserRouter([
1818
{
19-
path: '/:userCode',
20-
element: <ProfilePage />,
19+
path: '/',
20+
element: <NotFound />,
2121
},
2222
{
2323
path: '/:userCode/shows',
@@ -32,8 +32,8 @@ const router = createBrowserRouter([
3232
element: <ProfileLinkPage />,
3333
},
3434
{
35-
path: '/',
36-
element: <NotFound />,
35+
path: '/:userCode',
36+
element: <ProfilePage />,
3737
},
3838
{
3939
path: '*',
Lines changed: 1 addition & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -1,20 +1,7 @@
11
import { QueryClient, QueryClientProvider as BaseQueryClientProvider } from '@tanstack/react-query';
2-
import { useState } from 'react';
32

43
export function QueryClientProvider({ children }: React.PropsWithChildren) {
5-
const [queryClient] = useState(
6-
() =>
7-
new QueryClient({
8-
defaultOptions: {
9-
queries: {
10-
refetchOnWindowFocus: false,
11-
retry: false,
12-
staleTime: 5000,
13-
useErrorBoundary: true,
14-
},
15-
},
16-
}),
17-
);
4+
const queryClient = new QueryClient();
185

196
return <BaseQueryClientProvider client={queryClient}>{children}</BaseQueryClientProvider>;
207
}

0 commit comments

Comments
 (0)