(props: {
queryOpts: UseSuspenseQueryOptions<TData, Error, TData, Array<string>>
children?: React.ReactNode
})
| 36 | }) |
| 37 | |
| 38 | function Suspended<TData = unknown>(props: { |
| 39 | queryOpts: UseSuspenseQueryOptions<TData, Error, TData, Array<string>> |
| 40 | children?: React.ReactNode |
| 41 | }) { |
| 42 | const state = useSuspenseQuery(props.queryOpts) |
| 43 | |
| 44 | return ( |
| 45 | <div> |
| 46 | <div>data: {String(state.data)}</div> |
| 47 | {props.children} |
| 48 | </div> |
| 49 | ) |
| 50 | } |
| 51 | |
| 52 | it('should prefetch query if query state does not exist', async () => { |
| 53 | const queryOpts = { |
nothing calls this directly
no test coverage detected
searching dependent graphs…