react-gateway
Advanced tools
Comparing version 2.0.3 to 2.0.4
@@ -38,2 +38,3 @@ 'use strict'; | ||
Gateway.prototype.componentWillReceiveProps = function componentWillReceiveProps(props) { | ||
this.gatewayRegistry.clearChild(this.props.into); | ||
this.renderIntoGatewayNode(props); | ||
@@ -43,3 +44,3 @@ }; | ||
Gateway.prototype.componentWillUnmount = function componentWillUnmount() { | ||
this.gatewayRegistry.removeChild(this.props.into, this.props.children); | ||
this.gatewayRegistry.removeChild(this.props.into); | ||
}; | ||
@@ -46,0 +47,0 @@ |
@@ -42,4 +42,8 @@ 'use strict'; | ||
GatewayRegistry.prototype.clearChild = function clearChild(name) { | ||
this._children[name] = null; | ||
}; | ||
GatewayRegistry.prototype.removeChild = function removeChild(name) { | ||
this._children[name] = null; | ||
this.clearChild(name); | ||
this._renderContainer(name); | ||
@@ -46,0 +50,0 @@ }; |
{ | ||
"name": "react-gateway", | ||
"version": "2.0.3", | ||
"version": "2.0.4", | ||
"description": "Render React DOM into a new context", | ||
@@ -5,0 +5,0 @@ "main": "lib/index.js", |
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
17857
180