translucentDispatch
inline fun MiddlewareScope<*>.translucentDispatch(crossinline block: DispatchFunction): DispatchFunction
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)
}
}
Content copied to clipboard