Other Functions
The following functions are available globally.
-
Chain two actions together as a composite type.
Declaration
Swift
@inlinable public func + (lhs: Action, rhs: Action) -> CompositeActionParameters
lhsThe first action.
rhsThe next action.
Return Value
A composite action.
-
Compose two middleware together.
Declaration
Swift
@inlinable public func + <M1, M2>(previousMiddleware: M1, _ nextMiddleware: M2) -> CompositeMiddleware<M1.State, M1, M2> where M1: Middleware, M2: Middleware, M1.State == M2.StateParameters
previousMiddlewareThe middleware to be called first.
nextMiddlewareThe next middleware to call.
Return Value
The combined middleware.
-
Compose two reducers together.
Declaration
Swift
@inlinable public func + <R1, R2>(previousReducer: R1, _ nextReducer: R2) -> CompositeReducer<R1.State, R1, R2> where R1: Reducer, R2: Reducer, R1.State == R2.StateParameters
previousReducerThe first reducer to be called.
nextReducerThe second reducer to be called.
Return Value
A combined reducer.
View on GitHub
Other Functions Reference