Reducer

  • Performs an action on a given state and returns a whole new version.

    A store is given a single root Reducer. As it’s sent actions, it runs the reducer to update the application’s state.

    See more

    Declaration

    Swift

    public protocol Reducer
  • Use the ‘+’ operator to combine two or more reducers together.

    See more

    Declaration

    Swift

    public final class CompositeReducer<State, A, B> : Reducer where State == A.State, A : Reducer, B : Reducer, A.State == B.State