File tree Expand file tree Collapse file tree 2 files changed +16
-8
lines changed Expand file tree Collapse file tree 2 files changed +16
-8
lines changed Original file line number Diff line number Diff line change @@ -5,4 +5,5 @@ import './utils/sentry'
5
5
6
6
const router = createRouter ( )
7
7
8
- hydrateRoot ( document , < StartClient router = { router } /> )
8
+ // hydrateRoot(document, <StartClient router={router} />)
9
+ hydrateRoot ( document . getElementById ( 'root' ) ! , < StartClient router = { router } /> )
Original file line number Diff line number Diff line change @@ -13,7 +13,14 @@ import appCss from '~/styles/app.css?url'
13
13
import carbonStyles from '~/styles/carbon.css?url'
14
14
import { seo } from '~/utils/seo'
15
15
import ogImage from '~/images/og.png'
16
- import { RouterManagedTag , Scripts , Meta } from '@tanstack/start'
16
+ import {
17
+ RouterManagedTag ,
18
+ Scripts ,
19
+ Meta ,
20
+ Html ,
21
+ Head ,
22
+ Body ,
23
+ } from '@tanstack/start'
17
24
import { TanStackRouterDevtools } from '@tanstack/router-devtools'
18
25
import { NotFound } from '~/components/NotFound'
19
26
import { CgSpinner } from 'react-icons/cg'
@@ -142,14 +149,14 @@ function RootDocument({ children }: { children: React.ReactNode }) {
142
149
const showDevtools = showLoading && isRouterPage
143
150
144
151
return (
145
- < html lang = "en" >
146
- < head >
152
+ < Html lang = "en" >
153
+ < Head >
147
154
< Meta />
148
155
{ matches . find ( ( d ) => d . staticData ?. baseParent ) ? (
149
156
< base target = "_parent" />
150
157
) : null }
151
- </ head >
152
- < body >
158
+ </ Head >
159
+ < Body >
153
160
< SpeedInsights />
154
161
< Analytics />
155
162
< React . Suspense fallback = { null } > { children } </ React . Suspense >
@@ -179,7 +186,7 @@ function RootDocument({ children }: { children: React.ReactNode }) {
179
186
) : null }
180
187
< ScrollRestoration />
181
188
< Scripts />
182
- </ body >
183
- </ html >
189
+ </ Body >
190
+ </ Html >
184
191
)
185
192
}
You can’t perform that action at this time.
0 commit comments