docs: mention that <Head> is not dynamic (#3312)
Adds a small note that `<Head>` is not dynamic by default
This commit is contained in:
@@ -42,6 +42,11 @@ export default define.page((ctx) => {
|
|||||||
For more complex scenarios, or to set page metadata from islands, Fresh ships
|
For more complex scenarios, or to set page metadata from islands, Fresh ships
|
||||||
with the `<Head>`-component.
|
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
|
```tsx routes/about.tsx
|
||||||
import { Head } from "fresh/runtime";
|
import { Head } from "fresh/runtime";
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user