()
| 44 | const results: Array<Array<UseQueryResult>> = [] |
| 45 | |
| 46 | function Page() { |
| 47 | const result = useQueries(() => ({ |
| 48 | queries: [ |
| 49 | { |
| 50 | queryKey: key1, |
| 51 | queryFn: async () => { |
| 52 | await sleep(10) |
| 53 | return 1 |
| 54 | }, |
| 55 | }, |
| 56 | { |
| 57 | queryKey: key2, |
| 58 | queryFn: async () => { |
| 59 | await sleep(100) |
| 60 | return 2 |
| 61 | }, |
| 62 | }, |
| 63 | ], |
| 64 | })) |
| 65 | |
| 66 | createRenderEffect(() => { |
| 67 | results.push([{ ...result[0] }, { ...result[1] }]) |
| 68 | }) |
| 69 | |
| 70 | return ( |
| 71 | <div> |
| 72 | <div> |
| 73 | data1: {String(result[0].data ?? 'null')}, data2:{' '} |
| 74 | {String(result[1].data ?? 'null')} |
| 75 | </div> |
| 76 | </div> |
| 77 | ) |
| 78 | } |
| 79 | |
| 80 | const rendered = render(() => ( |
| 81 | <QueryClientProvider client={queryClient}> |
nothing calls this directly
no test coverage detected
searching dependent graphs…