trigger
fun <TModel : Any, TDependency> Action<TModel, TDependency>.trigger(vararg effects: Effect<TModel, TDependency>): Action.Next<TModel, TDependency>
Shorthand for returning an action result with triggered effects only.
For example:
data object OnSwipeRefresh : DetailScreenAction {
override fun DetailScreenModel.proceed() =
trigger(ReloadUserDetails)
}
Content copied to clipboard