mirror of https://github.com/sveltejs/svelte
check for existence of switch instance before introing - fixes #3054
parent
35001b36cc
commit
f2044c4e1c
@ -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