CacheableMutationWithNoInput

class CacheableMutationWithNoInput<TData, TError : Throwable>(launchMutation: suspend () -> TData?, cache: OnHandCache, dispatcher: CoroutineDispatcher = Dispatchers.Default)

Constructors

Link copied to clipboard
constructor(launchMutation: suspend () -> TData?, cache: OnHandCache, dispatcher: CoroutineDispatcher = Dispatchers.Default)

Properties

Link copied to clipboard

Functions

Link copied to clipboard
operator fun component1(): StateFlow<CacheableMutationResult<TData, TError>>
Link copied to clipboard
suspend fun mutate(optimisticUpdate: () -> Map<out CacheableInput, Any?>? = null, onSuccess: suspend (TData) -> Unit? = null, onError: suspend (TError) -> Unit? = null)