mirror of https://github.com/sveltejs/svelte
check for existence of switch instance before introing - fixes #3054
parent
2e8da2bc1f
commit
307db077eb
@ -0,0 +1,5 @@
|
||||
export default {
|
||||
test({ component }) {
|
||||
component.visible = true;
|
||||
}
|
||||
};
|
@ -0,0 +1,7 @@
|
||||
<script>
|
||||
export let visible = false;
|
||||
</script>
|
||||
|
||||
{#if visible}
|
||||
<svelte:component this={null}/>
|
||||
{/if}
|
Loading…
Reference in new issue