Skip to content

Commit

Permalink
docs(svelte-query): Correctly type layout data when using prefetchQue…
Browse files Browse the repository at this point in the history
…ry (#4852)
  • Loading branch information
Renni771 authored Jan 25, 2023
1 parent 68c3e19 commit 9404df4
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions docs/svelte/ssr.md
Original file line number Diff line number Diff line change
Expand Up @@ -107,9 +107,9 @@ export const load: LayoutLoad = async () => {
```markdown
<script lang="ts">
import { QueryClientProvider } from '@tanstack/svelte-query'
import type { PageData } from './$types'
import type { LayoutData } from './$types'

export let data: PageData
export let data: LayoutData
</script>

<QueryClientProvider client={data.queryClient}>
Expand Down

0 comments on commit 9404df4

Please sign in to comment.