node_modules/@analytics/core/lib/analytics.es.js
/*
     * Emit events for other plugins or middleware to react to.
     * @param  {Object} action - event to dispatch
     */
Emit events for other plugins or middleware to react to.
@param  {Object} action - event to dispatch
Emit events for other plugins or middleware to react to . @param { Object } action - event to dispatch
function dispatch(action) {
      var actionData = isString(action) ? {
        type: action
      } : action;
      if (isReservedAction(actionData.type)) {
        throw new Error('reserved action ' + actionData.type);
      }
      var _private = action._ || {}; 
      var dispatchData = objectSpread2(objectSpread2({}, actionData), {}, {
        _: objectSpread2({
          originalAction: actionData.type
        }, _private) 
      });
      store.dispatch(dispatchData);
    }
function dispatch ( action ) { var actionData = isString ( action ) ? { type : action } : action ; if ( isReservedAction ( actionData . type ) ) { throw new Error ( 'reserved action ' + actionData . type ) ; } var _private = action . _ || { } ; var dispatchData = objectSpread2 ( objectSpread2 ( { } , actionData ) , { } , { _ : objectSpread2 ( { originalAction : actionData . type } , _private ) } ) ; store . dispatch ( dispatchData ) ; }
Emit events for other plugins or middleware to react to.
Emit events for other plugins or middleware to react to .
// Dispatch actionStart // const autoPrefixType = `${actionData.type.replace(/Start$/, '')}Start` // type: `${autoPrefixType}`