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
classAppextendsWidgetBase{protectedbigPredicate(contentRect: ContentRect){returncontentRect.width>768;}protectedrender(){const{ isBig }=this.meta(Resize).get("root",{isBig: this.bigPredicate});return(<divkey="root">{isBig&&<h1>First</h1>}<h2>Second</h2>{/* Adding a third node fixes it <h3>Third</h3> */}</div>);}}
Expected behavior:
I would expect <h1>First</h1> to be rendered before <h2>Second</h2>.
Actual behavior:
<h2>Second</h2> is rendered before <h1>First</h1>.
The text was updated successfully, but these errors were encountered:
Bug
If a sibling element is conditionally rendered, it is rendered out of order, unless there is a third node.
Package Version: 4.0.0
Code
A reproducible CodeSandbox: https://codesandbox.io/s/8n76x533y9 and
it's working in https://codesandbox.io/s/205y711wly because it has an extra sibling
Expected behavior:
I would expect
<h1>First</h1>
to be rendered before<h2>Second</h2>
.Actual behavior:
<h2>Second</h2>
is rendered before<h1>First</h1>
.The text was updated successfully, but these errors were encountered: