function replaceReducer(nextReducer) {
    if (typeof nextReducer !== 'function') {
      throw new Error('Expected the nextReducer to be a function.');
    }

    currentReducer = nextReducer; // This action has a similiar effect to ActionTypes.INIT.
    // Any reducers that existed in both the new and old rootReducer
    // will receive the previous state. This effectively populates
    // the new state tree with any relevant data from the old one.

    dispatch({
      type: ActionTypes$1.REPLACE
    });
  }
/**
   * Replaces the reducer currently used by the store to calculate the state.
   *
   * You might need this if your app implements code splitting and you want to
   * load some of the reducers dynamically. You might also need this if you
   * implement a hot reloading mechanism for Redux.
   *
   * @param {Function} nextReducer The reducer for the store to use instead.
   * @returns {void}
   */
Replaces the reducer currently used by the store to calculate the state.
You might need this if your app implements code splitting and you want to
load some of the reducers dynamically. You might also need this if you
implement a hot reloading mechanism for Redux.

@param {Function} nextReducer The reducer for the store to use instead.
@returns {void}
Replaces the reducer currently used by the store to calculate the state . You might need this if your app implements code splitting and you want to load some of the reducers dynamically . You might also need this if you implement a hot reloading mechanism for Redux . @param { Function } nextReducer The reducer for the store to use instead . @returns { void }
function replaceReducer(nextReducer) {
    if (typeof nextReducer !== 'function') {
      throw new Error('Expected the nextReducer to be a function.');
    }
    currentReducer = nextReducer; 
    dispatch({
      type: ActionTypes$1.REPLACE
    });
  }
function replaceReducer ( nextReducer ) { if ( typeof nextReducer !== 'function' ) { throw new Error ( 'Expected the nextReducer to be a function.' ) ; } currentReducer = nextReducer ; dispatch ( { type : ActionTypes$1 . REPLACE } ) ; }
Replaces the reducer currently used by the store to calculate the state.
Replaces the reducer currently used by the store to calculate the state .
// This action has a similiar effect to ActionTypes.INIT. // Any reducers that existed in both the new and old rootReducer // will receive the previous state. This effectively populates // the new state tree with any relevant data from the old one.