dist/bundle.js
// different options opens up some testing and extensibility scenarios
different options opens up some testing and extensibility scenarios
different options opens up some testing and extensibility scenarios
function createConnect() {
  var _ref = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {},
      _ref$connectHOC = _ref.connectHOC,
      connectHOC = _ref$connectHOC === undefined ? connectAdvanced : _ref$connectHOC,
      _ref$mapStateToPropsF = _ref.mapStateToPropsFactories,
      mapStateToPropsFactories = _ref$mapStateToPropsF === undefined ? defaultMapStateToPropsFactories : _ref$mapStateToPropsF,
      _ref$mapDispatchToPro = _ref.mapDispatchToPropsFactories,
      mapDispatchToPropsFactories = _ref$mapDispatchToPro === undefined ? defaultMapDispatchToPropsFactories : _ref$mapDispatchToPro,
      _ref$mergePropsFactor = _ref.mergePropsFactories,
      mergePropsFactories = _ref$mergePropsFactor === undefined ? defaultMergePropsFactories : _ref$mergePropsFactor,
      _ref$selectorFactory = _ref.selectorFactory,
      selectorFactory = _ref$selectorFactory === undefined ? finalPropsSelectorFactory : _ref$selectorFactory;
  return function connect(mapStateToProps, mapDispatchToProps, mergeProps) {
    var _ref2 = arguments.length > 3 && arguments[3] !== undefined ? arguments[3] : {};
    var _ref2$pure = _ref2.pure,
        pure = _ref2$pure === undefined ? true : _ref2$pure,
        _ref2$areStatesEqual = _ref2.areStatesEqual,
        areStatesEqual = _ref2$areStatesEqual === undefined ? strictEqual : _ref2$areStatesEqual,
        _ref2$areOwnPropsEqua = _ref2.areOwnPropsEqual,
        areOwnPropsEqual = _ref2$areOwnPropsEqua === undefined ? shallowEqual : _ref2$areOwnPropsEqua,
        _ref2$areStatePropsEq = _ref2.areStatePropsEqual,
        areStatePropsEqual = _ref2$areStatePropsEq === undefined ? shallowEqual : _ref2$areStatePropsEq,
        _ref2$areMergedPropsE = _ref2.areMergedPropsEqual,
        areMergedPropsEqual = _ref2$areMergedPropsE === undefined ? shallowEqual : _ref2$areMergedPropsE,
        extraOptions = objectWithoutProperties(_ref2, ['pure', 'areStatesEqual', 'areOwnPropsEqual', 'areStatePropsEqual', 'areMergedPropsEqual']);
    var initMapStateToProps = match(mapStateToProps, mapStateToPropsFactories, 'mapStateToProps');
    var initMapDispatchToProps = match(mapDispatchToProps, mapDispatchToPropsFactories, 'mapDispatchToProps');
    var initMergeProps = match(mergeProps, mergePropsFactories, 'mergeProps');
    return connectHOC(selectorFactory, _extends$1({
      methodName: 'connect',
      getDisplayName: function getDisplayName(name) {
        return 'Connect(' + name + ')';
      },
      shouldHandleStateChanges: Boolean(mapStateToProps),
      initMapStateToProps: initMapStateToProps,
      initMapDispatchToProps: initMapDispatchToProps,
      initMergeProps: initMergeProps,
      pure: pure,
      areStatesEqual: areStatesEqual,
      areOwnPropsEqual: areOwnPropsEqual,
      areStatePropsEqual: areStatePropsEqual,
      areMergedPropsEqual: areMergedPropsEqual
    }, extraOptions));
  };
}
function createConnect ( ) { var _ref = arguments . length > 0 && arguments [ 0 ] !== undefined ? arguments [ 0 ] : { } , _ref$connectHOC = _ref . connectHOC , connectHOC = _ref$connectHOC === undefined ? connectAdvanced : _ref$connectHOC , _ref$mapStateToPropsF = _ref . mapStateToPropsFactories , mapStateToPropsFactories = _ref$mapStateToPropsF === undefined ? defaultMapStateToPropsFactories : _ref$mapStateToPropsF , _ref$mapDispatchToPro = _ref . mapDispatchToPropsFactories , mapDispatchToPropsFactories = _ref$mapDispatchToPro === undefined ? defaultMapDispatchToPropsFactories : _ref$mapDispatchToPro , _ref$mergePropsFactor = _ref . mergePropsFactories , mergePropsFactories = _ref$mergePropsFactor === undefined ? defaultMergePropsFactories : _ref$mergePropsFactor , _ref$selectorFactory = _ref . selectorFactory , selectorFactory = _ref$selectorFactory === undefined ? finalPropsSelectorFactory : _ref$selectorFactory ; return function connect ( mapStateToProps , mapDispatchToProps , mergeProps ) { var _ref2 = arguments . length > 3 && arguments [ 3 ] !== undefined ? arguments [ 3 ] : { } ; var _ref2$pure = _ref2 . pure , pure = _ref2$pure === undefined ? true : _ref2$pure , _ref2$areStatesEqual = _ref2 . areStatesEqual , areStatesEqual = _ref2$areStatesEqual === undefined ? strictEqual : _ref2$areStatesEqual , _ref2$areOwnPropsEqua = _ref2 . areOwnPropsEqual , areOwnPropsEqual = _ref2$areOwnPropsEqua === undefined ? shallowEqual : _ref2$areOwnPropsEqua , _ref2$areStatePropsEq = _ref2 . areStatePropsEqual , areStatePropsEqual = _ref2$areStatePropsEq === undefined ? shallowEqual : _ref2$areStatePropsEq , _ref2$areMergedPropsE = _ref2 . areMergedPropsEqual , areMergedPropsEqual = _ref2$areMergedPropsE === undefined ? shallowEqual : _ref2$areMergedPropsE , extraOptions = objectWithoutProperties ( _ref2 , [ 'pure' , 'areStatesEqual' , 'areOwnPropsEqual' , 'areStatePropsEqual' , 'areMergedPropsEqual' ] ) ; var initMapStateToProps = match ( mapStateToProps , mapStateToPropsFactories , 'mapStateToProps' ) ; var initMapDispatchToProps = match ( mapDispatchToProps , mapDispatchToPropsFactories , 'mapDispatchToProps' ) ; var initMergeProps = match ( mergeProps , mergePropsFactories , 'mergeProps' ) ; return connectHOC ( selectorFactory , _extends$1 ( { methodName : 'connect' , getDisplayName : function getDisplayName ( name ) { return 'Connect(' + name + ')' ; } , shouldHandleStateChanges : Boolean ( mapStateToProps ) , initMapStateToProps : initMapStateToProps , initMapDispatchToProps : initMapDispatchToProps , initMergeProps : initMergeProps , pure : pure , areStatesEqual : areStatesEqual , areOwnPropsEqual : areOwnPropsEqual , areStatePropsEqual : areStatePropsEqual , areMergedPropsEqual : areMergedPropsEqual } , extraOptions ) ) ; } ; }
different options opens up some testing and extensibility scenarios
different options opens up some testing and extensibility scenarios
// used in error messages // used to compute Connect's displayName from the wrapped component's displayName. // if mapStateToProps is falsy, the Connect component doesn't subscribe to store state changes // passed through to selectorFactory