Open History to see the last commit
1<script lang="ts">
2 import DbProvider from '../src/DbProvider.svelte'
3 import SsrDbQuery from './SsrDbQuery.svelte'
4 import type { CollectionOptions, DbClient } from '@tanstack/db'
5
6 type Person = {
7 id: string
8 name: string
9 sourcePayload: string
10 }
11
12 let {
13 client,
14 descriptor,
15 }: {
16 client: DbClient
17 descriptor: CollectionOptions<Person, string>
18 } = $props()
19</script>
20
21<DbProvider {client}>
22 <SsrDbQuery {descriptor} />
23</DbProvider>