uld only be used for tests, as it collects all
 * action information, which will cause memory bloat.
 */
const history = (log = []) => ({
  dispatch,
  getState
}) => {
  return next => action => {
    if ((0, _devtoolsEnvironment.isDevelopment)()) {
      log.push(action);
    }

    return next(action);
  };
};

exports.history = history;PK