Skip to content
Snippets Groups Projects
Commit 6d593c6a authored by Emmanuel Raviart's avatar Emmanuel Raviart
Browse files

Remove test page

parent a802c0a2
No related branches found
No related tags found
No related merge requests found
<script lang="ts">
let { variable } = $props()
const yFromQuantile = (_variableA: string = variable.a) => {
return _variableA
}
const arr = [0, 1, 2]
</script>
{#each arr as item}
{@const val = yFromQuantile()}
{val}
{/each}
<script lang="ts">
import TestComponent from "$lib/components/TestComponent.svelte"
let variable = $state({
a: 1,
b: 2,
})
setTimeout(() => {
variable = undefined
}, 3000)
</script>
{#if variable !== undefined}
<TestComponent {variable} />
{:else}
success
{/if}
<!--<script lang="ts">-->
<!-- import { untrack } from "svelte"-->
<!-- let x = $state(0)-->
<!-- let variable = $state({-->
<!-- a: 1,-->
<!-- b: 2,-->
<!-- })-->
<!-- $effect(() => {-->
<!-- if (x) {-->
<!-- untrack(() => {-->
<!-- variable = {-->
<!-- a: 3,-->
<!-- b: 4,-->
<!-- }-->
<!-- $inspect(variable.a)-->
<!-- })-->
<!-- }-->
<!-- })-->
<!--</script>-->
<!--<button onclick={() => x++}> Plus </button>-->
<!--{x}-->
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment