Socket
Socket
Sign inDemoInstall

mobx-react

Package Overview
Dependencies
Maintainers
2
Versions
144
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

mobx-react - npm Package Compare versions

Comparing version 3.5.0-fix85 to 3.5.0-fix85-2

11

custom.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);

@@ -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",

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc