()
| 34 | const results: Array<Array<UseQueryResult>> = [] |
| 35 | |
| 36 | function Page() { |
| 37 | const result = useQueries(() => ({ |
| 38 | queries: [ |
| 39 | { |
| 40 | queryKey: key1, |
| 41 | queryFn: () => sleep(10).then(() => 1), |
| 42 | }, |
| 43 | { |
| 44 | queryKey: key2, |
| 45 | queryFn: () => sleep(100).then(() => 2), |
| 46 | }, |
| 47 | ], |
| 48 | })) |
| 49 | |
| 50 | createRenderEffect(() => { |
| 51 | results.push([{ ...result[0] }, { ...result[1] }]) |
| 52 | }) |
| 53 | |
| 54 | return ( |
| 55 | <div> |
| 56 | <div> |
| 57 | data1: {String(result[0].data ?? 'null')}, data2:{' '} |
| 58 | {String(result[1].data ?? 'null')} |
| 59 | </div> |
| 60 | </div> |
| 61 | ) |
| 62 | } |
| 63 | |
| 64 | const rendered = renderWithClient(queryClient, () => <Page />) |
| 65 |
nothing calls this directly
no test coverage detected