()
| 73 | ) |
| 74 | } |
| 75 | function Page2() { |
| 76 | const query = useQuery(() => ({ |
| 77 | queryKey: key2, |
| 78 | queryFn: async () => { |
| 79 | await sleep(10) |
| 80 | return 'test2' |
| 81 | }, |
| 82 | })) |
| 83 | |
| 84 | return ( |
| 85 | <div> |
| 86 | <h1>{query.data}</h1> |
| 87 | </div> |
| 88 | ) |
| 89 | } |
| 90 | |
| 91 | const rendered = render(() => ( |
| 92 | <> |