CombinedReducer
public struct CombinedReducer: AnyReducer
A Reducer that combines multiple reducers into one. You will typically use this reducer during initial store setup:
let reducer = CombinedReducer([IncreaseByOneReducer(), IncreaseByTwoReducer()])
MainStore(reducer: reducer, appState: CounterState())
The order of the reducers in the array is the order in which the reducers will be invoked.
-
Creates a Combined Reducer from the given list of Reducers
Declaration
Swift
public init(_ reducers: [AnyReducer])
-
Undocumented
Declaration
Swift
public struct CombinedReducer: AnyReducer