4 Replies
stormy-goldOP•3y ago
ah sorry nevermind i found it
for the ones that dunno how.
// +layout.svelte
<script lang="ts">
import '../app.css'
import { QueryClientProvider } from '@tanstack/svelte-query'
import { SvelteQueryDevtools } from "@tanstack/svelte-query-devtools";
import type { PageData } from './$types'
export let data: PageData
</script>
<QueryClientProvider client={data.queryClient}>
<main>
<slot />
</main>
<SvelteQueryDevtools initialIsOpen />
</QueryClientProvider>
eastern-cyan•3y ago
I did not think there was any for Svelte ! Thanks @Yofune Nushi
rare-sapphire•3y ago
Had to dive deep into Discord to find this 🫠
The solution works tho 🙌🏼
This is still not available in the official documentation.
Thanks @Yofune Nushi 🙏🏼
correct-apricot•2y ago
Same, it doesn't state anything in the docs, do we just make a PR to update the docs?