mirror of https://github.com/sveltejs/svelte
allow non-existent dynamic components to be destroyed (#1660)
parent
3778431775
commit
620077227f
@ -0,0 +1,13 @@
|
||||
export default {
|
||||
data: {
|
||||
x: true
|
||||
},
|
||||
|
||||
nestedTransitions: true,
|
||||
|
||||
test(assert, component) {
|
||||
component.set({
|
||||
x: false
|
||||
});
|
||||
}
|
||||
};
|
@ -0,0 +1,3 @@
|
||||
{#if x}
|
||||
<svelte:component this={null}/>
|
||||
{/if}
|
Loading…
Reference in new issue