* @deprecated Use queryClient.query(options) instead. You can swallow errors with `.catch(noop)`. This method will be removed in the next major version.
(
options: FetchQueryOptions<TQueryFnData, TError, TData, TQueryKey>,
)
| 634 | * @deprecated Use queryClient.query(options) instead. You can swallow errors with `.catch(noop)`. This method will be removed in the next major version. |
| 635 | */ |
| 636 | prefetchQuery< |
| 637 | TQueryFnData = unknown, |
| 638 | TError = DefaultError, |
| 639 | TData = TQueryFnData, |
| 640 | TQueryKey extends QueryKey = QueryKey, |
| 641 | >( |
| 642 | options: FetchQueryOptions<TQueryFnData, TError, TData, TQueryKey>, |
| 643 | ): Promise<void> { |
| 644 | // eslint-disable-next-line no-restricted-syntax |
| 645 | return this.fetchQuery(options).then(noop).catch(noop) |
| 646 | } |
| 647 | |
| 648 | /** |
| 649 | * Asynchronous method to fetch and cache an infinite query, resolving with an |
no test coverage detected