e68307df3a
Fixes #3494 Removes `class="next-head"` from the children of the `<Head>` component. Instead, a single sentinel meta element named `next-head-count` is appended. The content is the number of contiguous elements immediately preceding the sentinel that _would have had_ the `class="next-head"` attribute. During an update, instead of searching for `class="next-head"`, the sentinel is located and the N previous elements are considered candidates for `oldTags`. New elements are inserted before the sentinel, and finally the sentinel is updated to reflect the new count. |
||
---|---|---|
.. | ||
router | ||
amp-context.ts | ||
amp.ts | ||
constants.ts | ||
data-manager-context.ts | ||
data-manager.ts | ||
dynamic.tsx | ||
head-manager-context.ts | ||
head.tsx | ||
loadable-context.ts | ||
loadable.d.ts | ||
loadable.js | ||
mitt.ts | ||
request-context.ts | ||
router-context.ts | ||
runtime-config.ts | ||
side-effect.tsx | ||
utils.ts |