react-intersection-observer
Advanced tools
Comparing version 9.10.0 to 9.10.1
{ | ||
"name": "react-intersection-observer", | ||
"version": "9.10.0", | ||
"version": "9.10.1", | ||
"description": "Monitor if a component is inside the viewport, using IntersectionObserver API", | ||
@@ -5,0 +5,0 @@ "type": "commonjs", |
@@ -30,3 +30,3 @@ "use strict"; | ||
module.exports = __toCommonJS(test_utils_exports); | ||
var import_test_utils = require("react-dom/test-utils"); | ||
var import_react = require("react"); | ||
var isMocking = false; | ||
@@ -136,4 +136,4 @@ var observers = /* @__PURE__ */ new Map(); | ||
} | ||
if (import_test_utils.act && getIsReactActEnvironment()) | ||
(0, import_test_utils.act)(() => item.callback(entries, observer)); | ||
if (import_react.act && getIsReactActEnvironment()) | ||
(0, import_react.act)(() => item.callback(entries, observer)); | ||
else | ||
@@ -140,0 +140,0 @@ item.callback(entries, observer); |
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
146031