Hi, thank for such wonderful project
just stumble upon Dynamic component bugs.
provided REPL of bug
when <:Component> inside other
<div>
<:Component {view}></:Component>
</div>
switching to other type causing null error as compiled code mount to null.parentNode
m: function mount(target, anchor) {
insertNode(h1, target, anchor);
insertNode(text_1, target, anchor);
insertNode(div, target, anchor);
if (switch_instance) switch_instance._mount(div, null);
},
p: function update(changed, state) {
if (switch_value !== (switch_value = state.view)) {
if (switch_instance) switch_instance.destroy();
if (switch_value) {
switch_instance = new switch_value(switch_props(state));
switch_instance._fragment.c();
switch_instance._mount(null.parentNode, null);
}
}
},
Hi, thank for such wonderful project
just stumble upon Dynamic component bugs.
provided REPL of bug
when <:Component> inside other
switching to other type causing null error as compiled code mount to
null.parentNode