Skip to content

Commit b029564

Browse files
marvinjudeLekoArts
andauthored
chore(docs): Add wrapRootElement + Head API limitation (#36580)
Co-authored-by: Lennart <[email protected]>
1 parent 992dd05 commit b029564

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

docs/docs/reference/built-in-components/gatsby-head.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -88,6 +88,7 @@ You'll need to be aware of these things when using Gatsby Head:
8888
- The `Head` function needs to return valid JSX.
8989
- Valid tags inside the `Head` function are: `link`, `meta`, `style`, `title`, `base`, `script`, and `noscript`.
9090
- Data block `<script>` tags such as `<script type="application/ld+json">` can go in the `Head` function, but dynamic scripts are better loaded with the [Gatsby Script Component](/docs/reference/built-in-components/gatsby-script/) in your pages or components.
91+
- As of now, `Head` can't access [React Context](https://reactjs.org/docs/context.html) that you defined in the [`wrapRootElement` API](/docs/reference/config-files/gatsby-browser/#wrapRootElement).
9192

9293
## Properties
9394

0 commit comments

Comments
 (0)