snapshot of https://github.com/TanStack/query.git (main, 2026-09-16; blobs > 131072B omitted)
This commit is contained in:
11
packages/svelte-query/tests/QueryClientProvider/Child.svelte
Normal file
11
packages/svelte-query/tests/QueryClientProvider/Child.svelte
Normal file
@@ -0,0 +1,11 @@
|
||||
<script lang="ts">
|
||||
import { createQuery } from '../../src/index.js'
|
||||
import { sleep } from '@tanstack/query-test-utils'
|
||||
|
||||
const query = createQuery(() => ({
|
||||
queryKey: ['hello'],
|
||||
queryFn: () => sleep(10).then(() => 'test'),
|
||||
}))
|
||||
</script>
|
||||
|
||||
<div>Data: {query.data ?? 'undefined'}</div>
|
||||
Reference in New Issue
Block a user