Skip to content

Commit

Permalink
added warning to readme about nesting of meta tags inside of <Head> (#…
Browse files Browse the repository at this point in the history
  • Loading branch information
fabb authored and timneutkens committed Jan 16, 2019
1 parent aa47401 commit 6c51525
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions packages/next/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -277,6 +277,8 @@ In this case only the second `<meta name="viewport" />` is rendered.

_Note: The contents of `<head>` get cleared upon unmounting the component, so make sure each page completely defines what it needs in `<head>`, without making assumptions about what other pages added_

_Note: `<title>` and `<meta>` elements need to be contained as **direct** children of the `<Head>` element, or wrapped into maximum one level of `<React.Fragment>`, otherwise the metatags won't be correctly picked up on clientside navigation._

### Fetching data and component lifecycle

<details>
Expand Down

0 comments on commit 6c51525

Please sign in to comment.