react-intersection-observer
Advanced tools
Comparing version 9.5.0-beta.2 to 9.5.0
10
index.js
@@ -67,3 +67,5 @@ "use strict"; | ||
function optionsToId(options) { | ||
return Object.keys(options).sort().filter((key) => options[key] !== void 0).map((key) => { | ||
return Object.keys(options).sort().filter( | ||
(key) => options[key] !== void 0 | ||
).map((key) => { | ||
return `${key}_${key === "root" ? getRootId(options.root) : options[key]}`; | ||
@@ -212,8 +214,8 @@ }).toString(); | ||
render() { | ||
if (!isPlainChildren(this.props)) { | ||
const { children } = this.props; | ||
if (typeof children === "function") { | ||
const { inView, entry } = this.state; | ||
return this.props.children({ inView, entry, ref: this.handleNode }); | ||
return children({ inView, entry, ref: this.handleNode }); | ||
} | ||
const { | ||
children, | ||
as, | ||
@@ -220,0 +222,0 @@ triggerOnce, |
{ | ||
"name": "react-intersection-observer", | ||
"version": "9.5.0-beta.2", | ||
"version": "9.5.0", | ||
"description": "Monitor if a component is inside the viewport, using IntersectionObserver API", | ||
@@ -5,0 +5,0 @@ "source": "./src/index.tsx", |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
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
No v1
QualityPackage is not semver >=1. This means it is not stable and does not support ^ ranges.
Found 1 instance in 1 package
104967
992
1