translucentDispatch

Creates a dispatch function that executes a given block and passes every action to the next middleware.

Example of usage:

fun debugMiddleware(): Middleware<AppState> = {
translucentDispatch { action ->
println(action)
}
}

See also