mirror of https://github.com/sveltejs/svelte
Merge pull request #3110 from sveltejs/gh-3054
check for existence of switch instance before introingpull/3114/head
commit
1685d875cb
@ -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