solidjs / solid-refresh

MIT License
86 stars 18 forks source link

Bug: Portal inside fragments causes the sibling element render in the incorrect place #36

Open kevintakeda opened 1 year ago

kevintakeda commented 1 year ago

Using fragment and Portal together leads to an incorrect rendering order.

Small reproduction: https://stackblitz.com/edit/solid-start-bare-ts-griwhk?file=src%2Fcomponents%2FComplex.tsx,src%2Froutes%2Findex.tsx

  1. Go to <Complex /> component inside the component folder.
  2. Refresh the page once
  3. Edit the text inside the <b>
  4. Hit save
  5. Check if <Complex /> renders in the correct place