QueryLoadingErrorObject

data class QueryLoadingErrorObject<T>(val reply: Reply<T>, val replyUpdatedAt: Long, val error: Throwable, val errorUpdatedAt: Long, val staleAt: Long, val fetchStatus: QueryFetchStatus, val isInvalidated: Boolean, val refresh: suspend () -> Unit) : QueryObject<T>

A QueryLoadingErrorObject represents the initial loading error state of the QueryObject.

Parameters

T

Type of data to retrieve.

Constructors

Link copied to clipboard
constructor(reply: Reply<T>, replyUpdatedAt: Long, error: Throwable, errorUpdatedAt: Long, staleAt: Long, fetchStatus: QueryFetchStatus, isInvalidated: Boolean, refresh: suspend () -> Unit)

Properties

Link copied to clipboard
open override val data: T?

The return value from the data source. (Backward compatibility with QueryModel)

Link copied to clipboard
open override val error: Throwable
Link copied to clipboard
open override val errorUpdatedAt: Long
Link copied to clipboard
open override val fetchStatus: QueryFetchStatus
Link copied to clipboard
open val isFailure: Boolean
Link copied to clipboard
Link copied to clipboard
open override val isInvalidated: Boolean
Link copied to clipboard
open val isPending: Boolean
Link copied to clipboard
open val isSuccess: Boolean
Link copied to clipboard
open override val refresh: suspend () -> Unit

Refreshes the data.

Link copied to clipboard
open override val reply: Reply<T>
Link copied to clipboard
open override val replyUpdatedAt: Long
Link copied to clipboard
open val revision: String
Link copied to clipboard
open override val staleAt: Long
Link copied to clipboard
open override val status: QueryStatus

Functions

Link copied to clipboard
open override fun isAwaited(): Boolean
Link copied to clipboard
open fun isPaused(currentAt: Long): Boolean
Link copied to clipboard
open fun isStaled(currentAt: Long): Boolean