CacheableMutationResult

data class CacheableMutationResult<TData, TError : Throwable>(val fetchState: FetchState, val error: TError?, val data: TData?) : CacheableResultWithData<TData, TError>

Constructors

Link copied to clipboard
constructor(fetchState: FetchState, error: TError?, data: TData?)

Properties

Link copied to clipboard

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
open override val data: TData?
Link copied to clipboard
open override val error: TError?
Link copied to clipboard
open override val fetchState: FetchState