File size: 433 Bytes
1e92f2d
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
<script lang="ts">
  import { QueryClient } from '@tanstack/query-core'
  import { QueryClientProvider } from '../../src/index.js'
  import ChildComponent from './ChildComponent.svelte'
  import type { QueryCache } from '@tanstack/query-core'

  export let queryCache: QueryCache

  const queryClient = new QueryClient({ queryCache })
</script>

<QueryClientProvider client={queryClient}>
  <ChildComponent />
</QueryClientProvider>