translucentMiddleware

inline fun <State> translucentMiddleware(crossinline block: MiddlewareScope<State>.(Action) -> Unit): Middleware<State>

Creates a middleware with translucentDispatch that executes a given block and passes every action to the next middleware.

Example of usage:

fun debugMiddleware() = translucentMiddleware<AppState> { action -> println(action) }