### Setup QueryClientProvider in Svelte
Source: https://tanstack.com/query/latest/docs/framework/svelte/overview
Include the QueryClientProvider near the root of your Svelte application to manage queries. Ensure QueryClient is instantiated.
```svelte
```
--------------------------------
### Fetch Data with createQuery in Svelte
Source: https://tanstack.com/query/latest/docs/framework/svelte/overview
Use the createQuery function to fetch and manage server state within any Svelte component. The arguments to create* functions must be wrapped in a function to preserve reactivity.
```svelte
{#if query.isLoading}
Loading...
{:else if query.isError}
Error: {query.error.message}
{:else if query.isSuccess}
{#each query.data as todo}
{todo.title}
{/each}
{/if}
```
=== COMPLETE CONTENT === This response contains all available snippets from this library. No additional content exists. Do not make further requests.