mirror of https://github.com/sveltejs/svelte
Merge pull request #3172 from sveltejs/gh-3113
prevent dynamic components being detached twicepull/3208/head
commit
2536bd2142
@ -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