From 86df3f369cb74a084e6a7a0c632c6077a08d3577 Mon Sep 17 00:00:00 2001 From: harshbaz Date: Fri, 17 Nov 2023 09:12:37 +0530 Subject: [PATCH] Rwender slot --- packages/experiments/src/routes/test/Virtu.svelte | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/packages/experiments/src/routes/test/Virtu.svelte b/packages/experiments/src/routes/test/Virtu.svelte index a102c263f..8b9d82ef1 100644 --- a/packages/experiments/src/routes/test/Virtu.svelte +++ b/packages/experiments/src/routes/test/Virtu.svelte @@ -7,7 +7,7 @@ export let index: number let show = index < 3 -const checkToShow = debounce(750, async (activeIndex: number) => { +const checkToShow = debounce(200, async (activeIndex: number) => { await tick() setTimeout(() => { show = index > activeIndex - 4 && index < activeIndex + 4 @@ -18,6 +18,4 @@ $: checkToShow(activeIndex) $: console.log(index, show) -{#if show} - -{/if} +