compoundActionsEnhancer()

Creates a StoreEnhancer that additionally wires the store's Reducer to properly handle CompoundActions by reducing each wrapped Action in sequence.

See also the section on Configuring your Store for usage with CompoundActions.

For more about store enhancers, see the Redux documentation.

Example (configuring a Store)

import { createStore } from "redux";
import { compoundActionsEnhancer } from "redoodle";
import { appStateReducer } from "./appStateReducer";

const store = createStore(appStateReducer, compoundActionsEnhancer());

TypeScript definition

function compoundActionsEnhancer(): StoreEnhancer;

results matching ""

    No results matching ""