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
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!
Most helpful comment
@zaceno Should be fixed now! 馃憤