HandleActionMiddleware
public final class HandleActionMiddleware<State> : Middleware
A simple middleware to perform any handling on a dispatched action.
-
Declaration
Swift
@inlinable public init(perform: @escaping (StoreProxy<State>, Action) -> Action?)
Parameters
body
The block to call when an action is dispatched.
-
Declaration
Swift
@inlinable public func run(store: StoreProxy<State>, action: Action) -> Action?