We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
preactjs
Learn more about funding links in repositories.
Report abuse
<template>
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Describe the bug Template tag content is rendered twice. My guess is that the oldDom pointer is wrong somewhere when recursing into <template> tags.
oldDom
EDIT: Looks like the actual dom is stuck in excessiveDomChildren
excessiveDomChildren
To Reproduce
it('should hydrate <template> tags ', () => { function App() { return <template><h1>it works</h1></template> } scratch.innerHTML = `<template><h1>it works</h1></template>` render(<App />, scratch); expect(scratch.innerHTML).to.equal(`<template><h1>it works</h1></template>`) });
Expected behavior No duplicate content.
The text was updated successfully, but these errors were encountered:
No branches or pull requests
Describe the bug
Template tag content is rendered twice. My guess is that the
oldDom
pointer is wrong somewhere when recursing into<template>
tags.EDIT: Looks like the actual dom is stuck in
excessiveDomChildren
To Reproduce
Expected behavior
No duplicate content.
The text was updated successfully, but these errors were encountered: