Open History to see the last commit
1<script lang="ts">
2 import { useStore } from '@tanstack/svelte-store'
3β
4 // Don't bother typing this out, this component is only usable through a wrapper
5 interface Props {
6 children: any
7 store: any
8 selector?: (state: any) => any
9 }
10β
11 let { children, store, selector = (state) => state }: Props = $props()
12β
13 const value = useStore(store, selector)
14</script>
15β
16{@render children(value.current)}