You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Check if updating to the latest Preact version resolves the issue
I'm having a problem where a component is repeatedly added to document.body, even though it's only used once in the component. Below is a simplified version of the code, where <B /> keeps getting added repeatedly. This issue doesn't happen with React. Am I missing something?
I'm having a problem where a component is repeatedly added to
document.body
, even though it's only used once in the component. Below is a simplified version of the code, where<B />
keeps getting added repeatedly. This issue doesn't happen with React. Am I missing something?To Reproduce, you can copy-paste the above code to https://preactjs.com/repl to see that the text "B" is continuously added.
Expected behavior
Only a single instance of
<B />
should be shown.Edit: I've further simplified the code.
The text was updated successfully, but these errors were encountered: