preparePerform

fun <D : E> preparePerform(klass: Class<in D>): Result<D>

Prepares an event resource based on the state of the currentPhase and returns it to the caller without persisting any changes into repository.

Return

Result<D> containing event if the action is successful, error otherwise.