Skip to content

Commit 46ce2aa

Browse files
committed
add hydration
1 parent 8767e0c commit 46ce2aa

File tree

1 file changed

+3
-1
lines changed
  • e2e/solid-start/serialization-adapters/src/routes

1 file changed

+3
-1
lines changed

e2e/solid-start/serialization-adapters/src/routes/__root.tsx

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@ import {
88
useRouterState,
99
} from '@tanstack/solid-router'
1010
import { TanStackRouterDevtools } from '@tanstack/solid-router-devtools'
11+
import { HydrationScript } from 'solid-js/web';
1112
import type {JSX} from 'solid-js';
1213
import appCss from '~/styles/app.css?url'
1314

@@ -37,9 +38,10 @@ function RootDocument({ children }: { children: JSX.Element }) {
3738
return (
3839
<html>
3940
<head>
40-
<HeadContent />
41+
<HydrationScript />
4142
</head>
4243
<body>
44+
<HeadContent />
4345
<div class="p-2 flex gap-2 text-lg">
4446
<h1>Serialization Adapters E2E Test</h1>
4547
<Link

0 commit comments

Comments
 (0)