Open History to see the last commit
1<script lang="ts">
2 import { onDestroy, onMount } from 'svelte'
3 import { QueryClient } from '@tanstack/query-core'
4 import { setQueryClientContext } from './context.js'
5β
6 export let client = new QueryClient()
7β
8 onMount(() => {
9 client.mount()
10 })
11β
12 setQueryClientContext(client)
13β
14 onDestroy(() => {
15 client.unmount()
16 })
17</script>
18β
19<slot />