processEffect

Processes a Transmission.Effect through the router.

This method allows you to manually send effects to the router, which can be useful for triggering cross-transformer communication or sending custom effects from the ViewModel layer. After processing the effect through the router, it calls onProcessEffect for any additional custom logic.

Example Usage:

// Trigger a manual refresh
fun refreshData() {
processEffect(RefreshDataEffect())
}

// Send a custom logging effect
fun logUserAction(action: String) {
processEffect(LoggingEffect("User action: $action"))
}

Parameters

effect

The effect to process