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
Repro is a component that returns an element with two or more children. In between saves, comment out one of the children, which may lead to the following behavior:
It throws an error
component mounts twice
This issue only exists in 0.7.0
Parcel:
Cannot reproduce when component returns a fragment.
Can reproduce when component returns an element:
When removing an element, the component remounts. Not a big issue.
When adding an element, the component behaves correctly.
Note
This works correctly
Vite:
Can reproduce when component returns an element or a fragment:
When removing an element, the component mounts twice bottom-to-top.
Re-adding the removed element between HMR works fine.
Re-adding the removed element on fresh load works fine.
The text was updated successfully, but these errors were encountered:
lxsmnsyc
changed the title
Bug: commenting out JSX
Bug: adding/removing JSX between HMR
Jan 24, 2024
Repro is a component that returns an element with two or more children. In between saves, comment out one of the children, which may lead to the following behavior:
This issue only exists in 0.7.0
Parcel:
Note
This works correctly
Vite:
The text was updated successfully, but these errors were encountered: