@restart/hooks
Advanced tools
Comparing version 0.3.6 to 0.3.7
@@ -32,3 +32,5 @@ "use strict"; | ||
var observer = (0, _useStableMemo.default)(function () { | ||
return typeof IntersectionObserver !== 'undefined' && new IntersectionObserver(setEntry, { | ||
return typeof IntersectionObserver !== 'undefined' && new IntersectionObserver(function (entries) { | ||
return setEntry(entries); | ||
}, { | ||
threshold: threshold, | ||
@@ -35,0 +37,0 @@ root: root, |
@@ -23,3 +23,5 @@ import { useState } from 'react'; | ||
var observer = useStableMemo(function () { | ||
return typeof IntersectionObserver !== 'undefined' && new IntersectionObserver(setEntry, { | ||
return typeof IntersectionObserver !== 'undefined' && new IntersectionObserver(function (entries) { | ||
return setEntry(entries); | ||
}, { | ||
threshold: threshold, | ||
@@ -26,0 +28,0 @@ root: root, |
{ | ||
"name": "@restart/hooks", | ||
"version": "0.3.6", | ||
"version": "0.3.7", | ||
"main": "cjs/index.js", | ||
@@ -5,0 +5,0 @@ "types": "cjs/index.d.ts", |
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
92967
2578