prefetchQuery

open override fun <T> prefetchQuery(key: QueryKey<T>, marker: Marker): Job

Prefetches the query by the specified QueryKey.

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.