InfiniteQueryFactoryWithInput

class InfiniteQueryFactoryWithInput<TInput : CacheableInput.QueryInput, TPageParam, TData, TError : Throwable>(cache: OnHandCache, 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, dedupingInterval: Duration? = 2.seconds, timeSource: TimeSource = TimeSource.Monotonic, query: suspend (input: TInput, page: TPageParam?) -> TData?) : RefetchableFactory.RefetchableFactoryWithInput<TInput>

Constructors

Link copied to clipboard
constructor(cache: OnHandCache, 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, dedupingInterval: Duration? = 2.seconds, timeSource: TimeSource = TimeSource.Monotonic, query: suspend (input: TInput, page: TPageParam?) -> TData?)

Functions

Link copied to clipboard
fun create(startingCacheKey: TInput? = null, coroutineScope: CoroutineScope, initialFetchState: FetchState = FetchState.IDLE): CacheableInfiniteQueryWithInput<TInput, TPageParam, TData, TError>
Link copied to clipboard
operator fun invoke(startingCacheKey: TInput? = null, coroutineScope: CoroutineScope, initialFetchState: FetchState = FetchState.IDLE): CacheableInfiniteQueryWithInput<TInput, TPageParam, TData, TError>
Link copied to clipboard
Link copied to clipboard
open suspend override fun refetch(input: TInput)