-
Notifications
You must be signed in to change notification settings - Fork 27.5k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Dedupe meta tag in favor of custom tag defined in _app * Add test * Fix comments
- Loading branch information
1 parent
16e0ff9
commit c650ed9
Showing
4 changed files
with
40 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
23 changes: 23 additions & 0 deletions
23
test/integration/client-navigation/pages/head-duplicate-default-keys.js
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
import React from 'react' | ||
import Head from 'next/head' | ||
|
||
export default () => ( | ||
<div> | ||
<Head> | ||
{/* this will not render */} | ||
<meta charSet='utf-8' key='charSet' /> | ||
{/* this will override the default (same key as the default) */} | ||
<meta charSet='iso-8859-5' key='charSet' /> | ||
|
||
{/* this will not render */} | ||
<meta name='viewport' content='width=device-width' key='viewport' /> | ||
{/* this will override the default (same key as the default) */} | ||
<meta | ||
name='viewport' | ||
content='width=device-width,initial-scale=1' | ||
key='viewport' | ||
/> | ||
</Head> | ||
<h1>Meta tags with same keys as default get deduped</h1> | ||
</div> | ||
) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters