Skip to content
Source
Sign inSign up
TanStack/query
Open History to see the last commit

Base.svelte

15 lines354 Bytes

1<script lang="ts">
2 import { QueryClientProvider } from '../../src/index.js'
3 import Child from './Child.svelte'
4 import type { QueryClient } from '@tanstack/query-core'
5​
6 type Props = {
7 queryClient: QueryClient
8 }
9​
10 let { queryClient }: Props = $props()
11</script>
12​
13<QueryClientProvider client={queryClient}>
14 <Child />
15</QueryClientProvider>