From 0185f9f9f668bff1e81475f1d5c0aaa5cca7027c Mon Sep 17 00:00:00 2001 From: Ryan Gossiaux Date: Tue, 14 Dec 2021 13:54:34 -0800 Subject: [PATCH] Don't render Transition contents if they're not visible Fixes #14 --- src/lib/components/transitions/TransitionRoot.svelte | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/src/lib/components/transitions/TransitionRoot.svelte b/src/lib/components/transitions/TransitionRoot.svelte index 6757021..9332960 100644 --- a/src/lib/components/transitions/TransitionRoot.svelte +++ b/src/lib/components/transitions/TransitionRoot.svelte @@ -168,6 +168,8 @@ setContext(TRANSITION_CONTEXT_NAME, transitionBag); - - - +{#if state === TreeStates.Visible} + + + +{/if}