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.
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:
Vite: