Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

react-observable-mixin

Package Overview
Dependencies
Maintainers
1
Versions
13
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

react-observable-mixin - npm Package Compare versions

Comparing version 1.0.2 to 1.0.3

9

lib/RxObservableMixin.js

@@ -73,2 +73,4 @@ 'use strict';

observablesSubscribeOnNext: function observablesSubscribeOnNext(state) {
if (!this.observablesSubscription) return;
if (this.componentWillReceiveStateFromObservables) this.componentWillReceiveStateFromObservables(state);

@@ -87,2 +89,4 @@

observablesSubscribeOnError: function observablesSubscribeOnError(error) {
if (!this.observablesSubscription) return;
if (this.componentWillReceiveErrorFromObservables) this.componentWillReceiveErrorFromObservables(error);

@@ -120,5 +124,8 @@ },

unsubscribeFromObservables: function unsubscribeFromObservables() {
this.observablesSubscription.dispose();
if (this.observablesSubscription) {
this.observablesSubscription.dispose();
this.observablesSubscription = null;
}
}
};
module.exports = exports['default'];

2

package.json
{
"name": "react-observable-mixin",
"version": "1.0.2",
"version": "1.0.3",
"description": "Container like observable mixin for ReactJS.",

@@ -5,0 +5,0 @@ "main": "lib/index.js",

@@ -62,2 +62,5 @@ import Rx from 'rx';

observablesSubscribeOnNext(state) {
if (!this.observablesSubscription)
return;
if (this.componentWillReceiveStateFromObservables)

@@ -77,2 +80,5 @@ this.componentWillReceiveStateFromObservables(state);

observablesSubscribeOnError(error) {
if (!this.observablesSubscription)
return;
if (this.componentWillReceiveErrorFromObservables)

@@ -109,4 +115,7 @@ this.componentWillReceiveErrorFromObservables(error);

unsubscribeFromObservables() {
this.observablesSubscription.dispose();
if (this.observablesSubscription) {
this.observablesSubscription.dispose();
this.observablesSubscription = null;
}
}
};

Sorry, the diff of this file is too big to display

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