react-transporter
Advanced tools
Comparing version 0.5.9 to 0.5.10
@@ -146,4 +146,3 @@ 'use strict'; | ||
loaders: initialState, | ||
Component: !hasCodeSplit ? component : null, | ||
EnhancedComponent: !hasCodeSplit ? (0, _enhanceWithConnect2.default)(component) : null | ||
Component: !hasCodeSplit ? component : null | ||
}; | ||
@@ -273,3 +272,2 @@ | ||
_this5.state.Component = resolveES6(result); | ||
_this5.state.EnhancedComponent = (0, _enhanceWithConnect2.default)(_this5.state.Component); | ||
} | ||
@@ -408,14 +406,12 @@ | ||
var props = _extends({}, loaderProps, this.props); | ||
var Component = this.state.Component; | ||
// connect selectors and actions if present | ||
if (config.selectors || config.actions) { | ||
var EnhancedComponent = this.state.EnhancedComponent; | ||
var EnhancedComponent = (0, _enhanceWithConnect2.default)(Component); | ||
return _react2.default.createElement(EnhancedComponent, { selectors: config.selectors, actions: config.actions, props: props }); | ||
} | ||
var Component = this.state.Component; | ||
return _react2.default.createElement(Component, props); | ||
@@ -422,0 +418,0 @@ } |
{ | ||
"name": "react-transporter", | ||
"version": "0.5.9", | ||
"version": "0.5.10", | ||
"main": "./lib/index.js", | ||
@@ -5,0 +5,0 @@ "description": "React.js Redux GraphQL client", |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
97831
2167