fix: make <Head> work in client (#3252)

Closes #3310

---------

Co-authored-by: Bartek Iwańczuk <biwanczuk@gmail.com>
Co-authored-by: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
This commit is contained in:
Marvin Hagemeister
2026-03-29 21:21:39 +02:00
committed by GitHub
co-authored by Bartek Iwańczuk Claude Opus 4.6
parent 19d3589b9b
commit a79b155e79
19 changed files with 557 additions and 131 deletions
@@ -8,6 +8,7 @@ export default function Page({ Component }: PageProps) {
<title>not ok</title>
<meta name="foo" content="not ok" />
<meta name="bar" content="not ok" />
<link rel="canonical" href="https://example.com/not-ok" />
<style>not ok</style>
<style id="style-id">not ok</style>
<template key="a">not ok</template>
@@ -0,0 +1,5 @@
import { DynamicMetaIsland } from "../islands/DynamicMetaIsland.tsx";
export default function Page() {
return <DynamicMetaIsland />;
}
@@ -0,0 +1,5 @@
import { LinkIsland } from "../islands/LinkIsland.tsx";
export default function Page() {
return <LinkIsland />;
}
@@ -0,0 +1,11 @@
import { MultiHeadA } from "../islands/MultiHeadA.tsx";
import { MultiHeadB } from "../islands/MultiHeadB.tsx";
export default function Page() {
return (
<>
<MultiHeadA />
<MultiHeadB />
</>
);
}