18 lines
387 B
Svelte
18 lines
387 B
Svelte
<script lang="ts">
|
|
import WeightTable from "$components/Weight/WeightTable.svelte";
|
|
import { weightStore } from "$lib/store/Weight/weightStore";
|
|
|
|
let forceUpdate = false;
|
|
weightStore.subscribe(() => {
|
|
forceUpdate = !forceUpdate;
|
|
});
|
|
</script>
|
|
|
|
<template>
|
|
{#if forceUpdate}
|
|
<WeightTable items={$weightStore} />
|
|
{:else}
|
|
<WeightTable items={$weightStore} />
|
|
{/if}
|
|
</template>
|