react-in-viewport
Advanced tools
Comparing version 1.0.0-beta.4 to 1.0.0-beta.5
@@ -134,3 +134,3 @@ "use strict"; | ||
return () => { | ||
if (observer) { | ||
if (mutationObserver) { | ||
mutationObserver.disconnect(); | ||
@@ -137,0 +137,0 @@ } |
@@ -126,3 +126,3 @@ "use strict"; | ||
return function () { | ||
if (observer) { | ||
if (mutationObserver) { | ||
mutationObserver.disconnect(); | ||
@@ -129,0 +129,0 @@ } |
@@ -122,3 +122,3 @@ import { useEffect, useRef, useState } from 'react'; | ||
return function () { | ||
if (observer) { | ||
if (mutationObserver) { | ||
mutationObserver.disconnect(); | ||
@@ -125,0 +125,0 @@ } |
@@ -103,3 +103,3 @@ "use strict"; | ||
return () => { | ||
if (observer) { | ||
if (mutationObserver) { | ||
mutationObserver.disconnect(); | ||
@@ -106,0 +106,0 @@ } |
@@ -137,3 +137,3 @@ (function (global, factory) { | ||
return function () { | ||
if (observer) { | ||
if (mutationObserver) { | ||
mutationObserver.disconnect(); | ||
@@ -140,0 +140,0 @@ } |
{ | ||
"name": "react-in-viewport", | ||
"version": "1.0.0-beta.4", | ||
"version": "1.0.0-beta.5", | ||
"description": "Track React component in viewport using Intersection Observer API", | ||
@@ -5,0 +5,0 @@ "author": "Roderick Hsiao <roderickhsiao@gmail.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
107545