QueryAction

sealed interface QueryAction<out T>

Query actions are used to update the query state.

Parameters

T

Type of the return value from the query.

Inheritors

Types

Link copied to clipboard
data class FetchFailure(val error: Throwable, val errorUpdatedAt: Long, val paused: QueryFetchStatus.Paused? = null) : QueryAction<Nothing>

Indicates that the query has failed.

Link copied to clipboard
data class Fetching(val isInvalidated: Boolean? = null) : QueryAction<Nothing>

Indicates that the query is fetching data.

Link copied to clipboard
data class FetchSuccess<T>(val data: T, val dataUpdatedAt: Long, val dataStaleAt: Long) : QueryAction<T>

Indicates that the query is successful.

Link copied to clipboard
data class ForceUpdate<T>(val data: T, val dataUpdatedAt: Long) : QueryAction<T>

Forces the query to update the data.

Link copied to clipboard

Invalidates the query.