Open History to see the last commit
1<script lang="ts">
2 import { useHydrate } from './useHydrate.js'
3 import type { Snippet } from 'svelte'
4 import type {
5 DehydratedState,
6 HydrateOptions,
7 QueryClient,
8 } from '@tanstack/query-core'
9β
10 type Props = {
11 children: Snippet
12 state: DehydratedState
13 options?: HydrateOptions
14 queryClient?: QueryClient
15 }
16β
17 let { children, state, options, queryClient }: Props = $props()
18β
19 useHydrate(state, options, queryClient)
20</script>
21β
22{@render children()}