Merge pull request #3110 from sveltejs/gh-3054

check for existence of switch instance before introing
pull/3114/head
Rich Harris 5 years ago committed by GitHub
commit 1685d875cb
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -447,7 +447,7 @@ export default class InlineComponentWrapper extends Wrapper {
`);
block.builders.intro.add_block(deindent`
@transition_in(${name}.$$.fragment, #local);
if (${name}) @transition_in(${name}.$$.fragment, #local);
`);
if (updates.length) {

@ -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…
Cancel
Save