Skip to contentOpen History to see the last commit
ChildComponent.svelte
11 lines297 Bytes
2 import { createQuery } from '../../src/index.js' 3 import { sleep } from '@tanstack/query-test-utils' 5 const query = createQuery(() => ({ 7 queryFn: () => sleep(10).then(() => 'test'), 11<div>Data: {query.data ?? 'undefined'}</div>