Hyperapp: Bug when switching nodes of different types in V2

Created on 20 Aug 2018  路  4Comments  路  Source: jorgebucaran/hyperapp

Using the V2 branch of hyperapp, there seems to be a bug when you swap out a vnode for one with a different tagName.

See here: https://codesandbox.io/s/lp3j0ynqoz

Bug

Most helpful comment

@zaceno Should be fixed now! 馃憤

All 4 comments

Thanks, @zaceno! I'll have a look as soon as I can. 馃憤

Further development: it only seems to happen when the node you're switching is one level deep. So:

This works:

state => <main><div>{state ? <div>bar</div> : <p>Foo</p>}</div></main>

This does not work:

state => <main>{state ? <div>bar</div> : <p>Foo</p>}</main>

This works:

state => state ? <div>bar</div> : <p>Foo</p>

@zaceno Should be fixed now! 馃憤

Fix confirmed!

Was this page helpful?
0 / 5 - 0 ratings

Related issues

jorgebucaran picture jorgebucaran  路  3Comments

jacobtipp picture jacobtipp  路  3Comments

VictorWinberg picture VictorWinberg  路  3Comments

zaceno picture zaceno  路  3Comments

guy-kdm picture guy-kdm  路  4Comments