({ value }: { value: string })
| 452 | } |
| 453 | |
| 454 | function Component({ value }: { value: string }) { |
| 455 | const state = useQuery({ |
| 456 | queryKey: key, |
| 457 | queryFn: () => sleep(10).then(() => 'data: ' + value), |
| 458 | |
| 459 | gcTime: 0, |
| 460 | notifyOnChangeProps: 'all', |
| 461 | }) |
| 462 | states.push(state) |
| 463 | return ( |
| 464 | <div> |
| 465 | <div>{state.data}</div> |
| 466 | </div> |
| 467 | ) |
| 468 | } |
| 469 | |
| 470 | const rendered = renderWithClient(queryClient, <Page />) |
| 471 |
no test coverage detected