mirror of https://github.com/sveltejs/svelte
prevent dynamic components being detached twice - fixes #3113
parent
943c04834a
commit
f4ca063c85
@ -0,0 +1 @@
|
||||
{#await null}{/await}
|
@ -0,0 +1,5 @@
|
||||
export default {
|
||||
test({ component }) {
|
||||
component.flag = false;
|
||||
}
|
||||
};
|
@ -0,0 +1,6 @@
|
||||
<script>
|
||||
export let flag = true;
|
||||
import Widget from './Widget.svelte';
|
||||
</script>
|
||||
|
||||
<svelte:component this={flag && Widget}/>
|
Loading…
Reference in new issue