react-code-dataset / react-query /packages /svelte-query /tests /QueryClientProvider /ParentComponent.svelte
Download react-query/packages/svelte-query/tests/QueryClientProvider/ParentComponent.svelte from Devendra174/react-code-dataset: direct link, hf CLI and curl.
- Browser
- Download file 433 Bytes
-
https://huggingface.co/datasets/Devendra174/react-code-dataset/resolve/1e92f2d0b9e054abc23a53595fd89ad3e2b4a34e/react-query/packages/svelte-query/tests/QueryClientProvider/ParentComponent.svelte
- Command line
-
hf download hf://datasets/Devendra174/react-code-dataset@1e92f2d0b9e054abc23a53595fd89ad3e2b4a34e/react-query/packages/svelte-query/tests/QueryClientProvider/ParentComponent.svelte
-
curl -L -o ParentComponent.svelte https://huggingface.co/datasets/Devendra174/react-code-dataset/resolve/1e92f2d0b9e054abc23a53595fd89ad3e2b4a34e/react-query/packages/svelte-query/tests/QueryClientProvider/ParentComponent.svelte
433 Bytes
| <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> | |