CacheableInfiniteQueryResult
data class CacheableInfiniteQueryResult<TPageParam, TData, TError : Throwable>(val fetchState: FetchState, val error: TError?, val data: List<PagedData<TPageParam?, TData>>? = null, val hasNextPage: Boolean = true, val hasPreviousPage: Boolean = false) : CacheableResultWithData<List<PagedData<TPageParam?, TData>>, TError>
Constructors
Link copied to clipboard
constructor(fetchState: FetchState, error: TError?, data: List<PagedData<TPageParam?, TData>>? = null, hasNextPage: Boolean = true, hasPreviousPage: Boolean = false)
Properties
Link copied to clipboard
val <TData, TError : Throwable> CacheableResultWithData<TData, TError>.cachedDataState: CacheAndFetchState
Convenience property to know if your cache already has data. This can be helpful with optimistic updates so that you don't always show a spinner if there is cache information already, but you are doing a fetch operation
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard