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

HydrationBoundary.svelte

16 lines392 Bytes

1<script lang="ts">
2 import { useHydrate } from './useHydrate'
3 import type {
4 DehydratedState,
5 HydrateOptions,
6 QueryClient,
7 } from '@tanstack/query-core'
8​
9 export let state: DehydratedState
10 export let options: HydrateOptions | undefined = undefined
11 export let queryClient: QueryClient | undefined = undefined
12​
13 useHydrate(state, options, queryClient)
14</script>
15​
16<slot />