invoke

abstract suspend operator fun invoke(effect: E, prev: S, current: S, dispatch: suspend (A) -> Unit)

Parameters

effect

The effect that was triggered.

prev

The state before the transition.

current

The state after the transition.

dispatch

A function to dispatch actions during effect handling.