<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>
