react-in-viewport
Advanced tools
Comparing version 0.0.34 to 0.0.35
@@ -138,6 +138,3 @@ var _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; | ||
// handle stateless | ||
// $FlowFixMe | ||
this.node = findDOMNode(node); | ||
this.initIntersectionObserver(); | ||
this.startObserver(this.node, this.observer); | ||
this.node = node; | ||
} | ||
@@ -144,0 +141,0 @@ }; |
@@ -162,6 +162,3 @@ 'use strict'; | ||
// handle stateless | ||
// $FlowFixMe | ||
this.node = (0, _reactDom.findDOMNode)(node); | ||
this.initIntersectionObserver(); | ||
this.startObserver(this.node, this.observer); | ||
this.node = node; | ||
} | ||
@@ -168,0 +165,0 @@ } |
{ | ||
"name": "react-in-viewport", | ||
"version": "0.0.34", | ||
"version": "0.0.35", | ||
"description": "Track React component in viewport", | ||
@@ -5,0 +5,0 @@ "author": "Roderick Hsiao <roderickhsiao@gmail.com>", |
@@ -98,4 +98,7 @@ # React In Viewport Component | ||
## Note | ||
This library is currently using `ReactDOM.findDOMNode` to access DOM from React element. This method is deprecated in `StrictMode`, we will update the code and release a major version when React 17 is out. | ||
## Who is using this component | ||
- [Tinder](https://tinder.com) |
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
Major refactor
Supply chain riskPackage has recently undergone a major refactor. It may be unstable or indicate significant internal changes. Use caution when updating to versions that include significant changes.
Found 1 instance in 1 package
104
0
21862
5
310