mirror of
https://github.com/terribleplan/next.js.git
synced 2024-01-19 02:48:18 +00:00
9890e06907
Fixes #3705 Fixes #4656 - No longer automatically dedupe certain tags. Only the ones we know are *never* going to be duplicate like charSet, title etc. - Fix `key=""` behavior, making sure that if a unique key is provided tags are deduped based on that. For example: ```jsx <meta property='fb:pages' content='one'> <meta property='fb:pages' content='two'> ``` Would currently cause ```jsx <meta property='fb:pages' content='two'> ``` ### After this change: ```jsx <meta property='fb:pages' content='one'> <meta property='fb:pages' content='two'> ``` Then if you use next/head multiple times / want to be able to override: ```jsx <meta property='fb:pages' content='one' key="not-unique-key"> <meta property='fb:pages' content='two' key="not-unique-key"> ``` Would cause: ```jsx <meta property='fb:pages' content='two'> ``` As `key` gets deduped correctly after this PR, similar to how React itself works. |
||
---|---|---|
.. | ||
dynamic | ||
hmr | ||
nav | ||
nested-cdm | ||
using-asset | ||
async-props.js | ||
custom-encoding.js | ||
custom-extension.jsx | ||
default-head.js | ||
empty-get-initial-props.js | ||
error-in-the-browser-global-scope.js | ||
error-in-the-global-scope.js | ||
error-inside-browser-page.js | ||
error-inside-page.js | ||
fragment-syntax.js | ||
head.js | ||
index.js | ||
json.js | ||
link.js | ||
no-default-export.js | ||
process-env.js | ||
read-only-object-error.js | ||
stateless.js | ||
styled-jsx.js | ||
url-prop-override.js | ||
url-prop.js | ||
with-cdm.js |