MutationAction

sealed interface MutationAction<out T>

Mutation actions are used to update the mutation state.

Parameters

T

Type of the return value from the mutation.

Inheritors

Types

Link copied to clipboard
data class MutateFailure(val error: Throwable, val errorUpdatedAt: Long) : MutationAction<Nothing>

Indicates that the mutation has failed.

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

Indicates that the mutation is successful.

Link copied to clipboard

Indicates that the mutation is in progress.

Link copied to clipboard
data object Reset : MutationAction<Nothing>

Resets the mutation state.