mobx-react
Advanced tools
Comparing version 3.5.0-fix85 to 3.5.0-fix85-2
@@ -102,5 +102,5 @@ (function() { | ||
isRenderingPending = true; | ||
if (self.__$mobxMounted) { // componentWillReact *could* cause component to be unmounted.. | ||
if (/*self.__$mobxIsMounted === true &&*/ self.__$mobxIsUnmounted !== true) { // componentWillReact *could* cause component to be unmounted.. | ||
React.Component.prototype.forceUpdate.call(self) | ||
} else { | ||
// } else if (!self.__$mobxIsMounted) { | ||
// long story, see: | ||
@@ -115,3 +115,3 @@ // https://github.com/mobxjs/mobx-react/issues/85 | ||
// this will trigger a warning, but yield the correct rendering, see misc.js: 133 | ||
React.Component.prototype.setState.call(self, {}) // fixes 85 | ||
// React.Component.prototype.setState.call(self, {}) // fixes 85 | ||
} | ||
@@ -143,3 +143,3 @@ } | ||
this.render.$mobx && this.render.$mobx.dispose(); | ||
this.__$mobxMounted = false; | ||
this.__$mobxIsUnmounted = true; | ||
if (isDevtoolsEnabled) { | ||
@@ -159,3 +159,4 @@ var node = findDOMNode(this); | ||
componentDidMount: function() { | ||
this.__$mobxMounted = true; | ||
// TODO: remove? | ||
// this.__$mobxIsMounted = true; | ||
if (isDevtoolsEnabled) | ||
@@ -162,0 +163,0 @@ reportRendering(this); |
11
index.js
@@ -102,5 +102,5 @@ (function() { | ||
isRenderingPending = true; | ||
if (self.__$mobxMounted) { // componentWillReact *could* cause component to be unmounted.. | ||
if (/*self.__$mobxIsMounted === true &&*/ self.__$mobxIsUnmounted !== true) { // componentWillReact *could* cause component to be unmounted.. | ||
React.Component.prototype.forceUpdate.call(self) | ||
} else { | ||
// } else if (!self.__$mobxIsMounted) { | ||
// long story, see: | ||
@@ -115,3 +115,3 @@ // https://github.com/mobxjs/mobx-react/issues/85 | ||
// this will trigger a warning, but yield the correct rendering, see misc.js: 133 | ||
React.Component.prototype.setState.call(self, {}) // fixes 85 | ||
// React.Component.prototype.setState.call(self, {}) // fixes 85 | ||
} | ||
@@ -143,3 +143,3 @@ } | ||
this.render.$mobx && this.render.$mobx.dispose(); | ||
this.__$mobxMounted = false; | ||
this.__$mobxIsUnmounted = true; | ||
if (isDevtoolsEnabled) { | ||
@@ -159,3 +159,4 @@ var node = findDOMNode(this); | ||
componentDidMount: function() { | ||
this.__$mobxMounted = true; | ||
// TODO: remove? | ||
// this.__$mobxIsMounted = true; | ||
if (isDevtoolsEnabled) | ||
@@ -162,0 +163,0 @@ reportRendering(this); |
@@ -102,5 +102,5 @@ (function() { | ||
isRenderingPending = true; | ||
if (self.__$mobxMounted) { // componentWillReact *could* cause component to be unmounted.. | ||
if (/*self.__$mobxIsMounted === true &&*/ self.__$mobxIsUnmounted !== true) { // componentWillReact *could* cause component to be unmounted.. | ||
React.Component.prototype.forceUpdate.call(self) | ||
} else { | ||
// } else if (!self.__$mobxIsMounted) { | ||
// long story, see: | ||
@@ -115,3 +115,3 @@ // https://github.com/mobxjs/mobx-react/issues/85 | ||
// this will trigger a warning, but yield the correct rendering, see misc.js: 133 | ||
React.Component.prototype.setState.call(self, {}) // fixes 85 | ||
// React.Component.prototype.setState.call(self, {}) // fixes 85 | ||
} | ||
@@ -143,3 +143,3 @@ } | ||
this.render.$mobx && this.render.$mobx.dispose(); | ||
this.__$mobxMounted = false; | ||
this.__$mobxIsUnmounted = true; | ||
if (isDevtoolsEnabled) { | ||
@@ -159,3 +159,4 @@ var node = findDOMNode(this); | ||
componentDidMount: function() { | ||
this.__$mobxMounted = true; | ||
// TODO: remove? | ||
// this.__$mobxIsMounted = true; | ||
if (isDevtoolsEnabled) | ||
@@ -162,0 +163,0 @@ reportRendering(this); |
{ | ||
"name": "mobx-react", | ||
"version": "3.5.0-fix85", | ||
"version": "3.5.0-fix85-2", | ||
"description": "React bindings for MobX. Create fully reactive components.", | ||
@@ -5,0 +5,0 @@ "main": "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
75791
1257