We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
Any island tree being constructed inside a textContent based DOM Node get's replicated.
Example:
const HelloIsland = ()=>{ return <h1>Hello</h1> } export const get = (ctx)=>{ return ( <> <p> <HelloIsland /> </p> </> ); }
Would end up creating multiple <h1> and p tags
<h1>
p
The text was updated successfully, but these errors were encountered:
This is only in cases where the island renders an invalid semantic child,
example:
<p> <h1> Hello World </h1> </p>
This is to be caught at the AST level since preact will go ahead and render it as sibling when the component is rendered with an island.
The other option is to generate a text node tree like fresh does but that would make the rendering a little more complicated.
Sorry, something went wrong.
The reason for this is as listed in this issue preactjs/preact#4093
Possible solutions
barelyhuman
No branches or pull requests
Any island tree being constructed inside a textContent based DOM Node get's replicated.
Example:
Would end up creating multiple
<h1>
andp
tagsThe text was updated successfully, but these errors were encountered: