File tree Expand file tree Collapse file tree 1 file changed +5
-7
lines changed Expand file tree Collapse file tree 1 file changed +5
-7
lines changed Original file line number Diff line number Diff line change 1
- import { createRootRoute , Outlet , redirect , useRouterState } from '@tanstack/react-router' ;
1
+ import { createRootRoute , Outlet , redirect } from '@tanstack/react-router' ;
2
2
import { TanStackRouterDevtools } from '@tanstack/router-devtools' ;
3
3
import '../index.css' ;
4
4
import { ErrorBoundary } from '../components/ErrorBoundary' ;
@@ -44,8 +44,6 @@ export const Route = createRootRoute({
44
44
function Root ( ) {
45
45
const { experiments, font, language } = useSettings ( ) ;
46
46
const dir = i18n . dir ( language ) ;
47
- const router = useRouterState ( ) ;
48
- const pathname = router . location . pathname ;
49
47
const { data : unreadCount } = useUnreadCount ( ) ;
50
48
51
49
const { updateServiceWorker } = useRegisterSW ( {
@@ -94,11 +92,11 @@ function Root() {
94
92
< div className = "flex mx-auto lg:flex-row lg:w-fit lg:gap-2" >
95
93
< Navbar />
96
94
< div className = "flex justify-center mx-auto" >
97
- < div className = { cn ( 'flex flex-col sm:border-x w-screen sm:w-[550px]' ) } >
98
- < ErrorBoundary >
95
+ < div className = { cn ( 'flex flex-col sm:border-x w-screen sm:w-[550px]' ) } >
96
+ < ErrorBoundary >
99
97
< Outlet key = "app" />
100
- </ ErrorBoundary >
101
- </ div >
98
+ </ ErrorBoundary >
99
+ </ div >
102
100
</ div >
103
101
</ div >
104
102
{ experiments . devMode && (
You can’t perform that action at this time.
0 commit comments