File tree Expand file tree Collapse file tree 2 files changed +5
-18
lines changed
Expand file tree Collapse file tree 2 files changed +5
-18
lines changed Original file line number Diff line number Diff line change @@ -16,8 +16,8 @@ import { Suspense } from 'react';
1616
1717const 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 : '*' ,
Original file line number Diff line number Diff line change 11import { QueryClient , QueryClientProvider as BaseQueryClientProvider } from '@tanstack/react-query' ;
2- import { useState } from 'react' ;
32
43export 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}
You can’t perform that action at this time.
0 commit comments