prefetchInfiniteQuery

open override fun <T, S> prefetchInfiniteQuery(key: InfiniteQueryKey<T, S>, marker: Marker): Job

Prefetches the infinite query by the specified InfiniteQueryKey.

Note: Prefetch is executed within a kotlinx.coroutines.CoroutineScope associated with the instance of QueryClient. After data retrieval, subscription is automatically unsubscribed, hence the caching period depends on QueryOptions.