react-intersection-observer
Advanced tools
Comparing version 9.4.0 to 9.4.1
{ | ||
"name": "react-intersection-observer", | ||
"version": "9.4.0", | ||
"version": "9.4.1", | ||
"description": "Monitor if a component is inside the viewport, using IntersectionObserver API", | ||
@@ -81,4 +81,4 @@ "source": "./src/index.tsx", | ||
"peerDependencies": { | ||
"react": "^15.0.0 || ^16.0.0 || ^17.0.0|| ^18.0.0" | ||
"react": "^15.0.0 || ^16.0.0 || ^17.0.0 || ^18.0.0" | ||
} | ||
} |
@@ -443,3 +443,4 @@ import * as React from 'react'; | ||
if (skip || !ref) return; | ||
var unobserve = observe(ref, function (inView, entry) { | ||
var unobserve; | ||
unobserve = observe(ref, function (inView, entry) { | ||
setState({ | ||
@@ -446,0 +447,0 @@ inView: inView, |
@@ -463,3 +463,4 @@ var React = require('react'); | ||
if (skip || !ref) return; | ||
var unobserve = observe(ref, function (inView, entry) { | ||
var unobserve; | ||
unobserve = observe(ref, function (inView, entry) { | ||
setState({ | ||
@@ -466,0 +467,0 @@ inView: inView, |
@@ -466,3 +466,4 @@ (function (global, factory) { | ||
if (skip || !ref) return; | ||
var unobserve = observe(ref, function (inView, entry) { | ||
var unobserve; | ||
unobserve = observe(ref, function (inView, entry) { | ||
setState({ | ||
@@ -469,0 +470,0 @@ inView: inView, |
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
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
214343
2059