Function overrideActions

  • Create a new ActionMap with the same actions as the given, differing only in the reducers of the actions. This function is useful to react to actions originally defined in other modules, with reducer functions adapted to the state of a current module.

    Returns

    Type Parameters

    • T extends ActionMap<S1, T>

      The specific type of the ActionsMap

    • S1

    • S2

    Parameters

    • actions: T

      an ActionsMap to override

    • Optional newReducers: Partial<{ [ P in string | number | symbol]: PartialReducerOf<any, S2> }>

      An object containing full reducers as the values por the properties representing actions you want to override their reducers.

    Returns ActionMap<S2>

Generated using TypeDoc