Socket
Socket
Sign inDemoInstall

react-input-message

Package Overview
Dependencies
Maintainers
1
Versions
40
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

react-input-message - npm Package Compare versions

Comparing version 0.9.2 to 0.9.3

13

connectToMessageContainer.js

@@ -26,3 +26,4 @@ 'use strict';

MessageListener.prototype.shouldComponentUpdate = function shouldComponentUpdate(nextProps, nextState) {
MessageListener.prototype.shouldComponentUpdate = function shouldComponentUpdate(nextProps, nextState, nextContext) {
if (!(nextContext || {}).messageContainer) return true;
if (!this.state && nextState) return true;

@@ -40,9 +41,11 @@ if (this.state && !nextState) return true;

this.unsubscribe = container.subscribe(function (getMessages) {
_this.setState(_this._getValidationState(getMessages));
});
if (container) {
this.unsubscribe = container.subscribe(function (getMessages) {
_this.setState(_this._getValidationState(getMessages));
});
}
};
MessageListener.prototype.componentWillUnmount = function componentWillUnmount() {
this.unsubscribe();
this.unsubscribe && this.unsubscribe();
};

@@ -49,0 +52,0 @@

{
"name": "react-input-message",
"description": "unopinionated form input annotation",
"version": "0.9.2",
"version": "0.9.3",
"repository": {

@@ -6,0 +6,0 @@ "url": "git://github.com/jquense/react-input-message.git"

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