docs: mention that <Head> is not dynamic (#3312)

Adds a small note that `<Head>` is not dynamic by default
This commit is contained in:
fry69
2025-09-02 15:20:12 +02:00
committed by GitHub
parent 35f5cc4b7a
commit c163e457d0
+5
View File
@@ -42,6 +42,11 @@ export default define.page((ctx) => {
For more complex scenarios, or to set page metadata from islands, Fresh ships
with the `<Head>`-component.
> [info]: The `<Head>` component is not dynamic by default. It will not
> automatically update the document title or other head elements on the client
> side when component state changes. The head elements are set during server
> rendering or initial page load.
```tsx routes/about.tsx
import { Head } from "fresh/runtime";