InfiniteQueryFactoryWithNoInput

class InfiniteQueryFactoryWithNoInput<TPageParam, TData, TError : Throwable>(cache: OnHandCache, cacheKey: CacheableInput.QueryInput, initialPageParam: TPageParam? = null, getNextPageParam: suspend (pages: List<PagedData<TPageParam?, TData>>) -> PageParam<TPageParam>, getPreviousPageParam: suspend (pages: List<PagedData<TPageParam?, TData>>) -> PageParam<TPageParam>? = null, dispatcher: CoroutineDispatcher = Dispatchers.Default, ttl: Duration? = null, query: suspend (page: TPageParam?) -> TData?)

Constructors

Link copied to clipboard
constructor(cache: OnHandCache, cacheKey: CacheableInput.QueryInput, initialPageParam: TPageParam? = null, getNextPageParam: suspend (pages: List<PagedData<TPageParam?, TData>>) -> PageParam<TPageParam>, getPreviousPageParam: suspend (pages: List<PagedData<TPageParam?, TData>>) -> PageParam<TPageParam>? = null, dispatcher: CoroutineDispatcher = Dispatchers.Default, ttl: Duration? = null, query: suspend (page: TPageParam?) -> TData?)

Functions

Link copied to clipboard
fun create(coroutineScope: CoroutineScope, initialFetchState: FetchState = FetchState.IDLE): CacheableInfiniteQueryWithNoInput<TPageParam, TData, TError>
Link copied to clipboard
operator fun invoke(coroutineScope: CoroutineScope, initialFetchState: FetchState = FetchState.IDLE): CacheableInfiniteQueryWithNoInput<TPageParam, TData, TError>