Open History to see the last commit
1<script lang="ts">
2 import { setDbClientContext } from './db-context.js'
3 import type { DbClient } from '@tanstack/db'
4 import type { Snippet } from 'svelte'
5
6 let {
7 client,
8 children,
9 }: {
10 client: DbClient
11 children?: Snippet
12 } = $props()
13
14 setDbClientContext(() => client)
15</script>
16
17{@render children?.()}