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

react-in-viewport

Package Overview
Dependencies
Maintainers
1
Versions
74
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

react-in-viewport - npm Package Compare versions

Comparing version 1.0.0-beta.4 to 1.0.0-beta.5

2

dist/es/lib/useInViewport.js

@@ -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>",

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