Skip to content

Commit 32c660f

Browse files
committed
move headcontent to body so it's hydrated
1 parent 509fa62 commit 32c660f

3 files changed

Lines changed: 3 additions & 3 deletions

File tree

examples/solid/start-bare/src/routes/__root.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,10 +21,10 @@ function RootDocument(props: { children: Solid.JSX.Element }) {
2121
return (
2222
<html>
2323
<head>
24-
<HeadContent />
2524
<HydrationScript />
2625
</head>
2726
<body>
27+
<HeadContent />
2828
<div>
2929
<Link to="/">Index</Link>
3030
<Link to="/about">About</Link>

examples/solid/start-basic-static/src/routes/__root.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -76,10 +76,10 @@ function RootLayout({ children }: { children: Solid.JSX.Element }) {
7676
return (
7777
<html>
7878
<head>
79-
<HeadContent />
8079
<HydrationScript />
8180
</head>
8281
<body>
82+
<HeadContent />
8383
<div class="p-2 flex gap-2 text-lg">
8484
<Link
8585
to="/"

examples/solid/start-basic/src/routes/__root.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -61,10 +61,10 @@ function RootDocument({ children }: { children: Solid.JSX.Element }) {
6161
return (
6262
<html>
6363
<head>
64-
<HeadContent />
6564
<HydrationScript />
6665
</head>
6766
<body>
67+
<HeadContent />
6868
<div class="p-2 flex gap-2 text-lg">
6969
<Link
7070
to="/"

0 commit comments

Comments
 (0)