@n8tb1t/use-scroll-position
Advanced tools
Comparing version 1.0.35 to 1.0.36
@@ -0,1 +1,7 @@ | ||
#### 1.0.36 (2019-09-20) | ||
##### New Features | ||
* skip listener when no window ([7fafbb2e](https://github.com/n8tb1t/use-scroll-position/commit/7fafbb2e7638f41c340a979a53a0605718413e09)) | ||
#### 1.0.35 (2019-07-03) | ||
@@ -2,0 +8,0 @@ |
@@ -51,2 +51,6 @@ "use strict"; | ||
(0, _react.useLayoutEffect)(function () { | ||
if (!isBrowser) { | ||
return; | ||
} | ||
var handleScroll = function handleScroll() { | ||
@@ -53,0 +57,0 @@ if (wait) { |
{ | ||
"name": "@n8tb1t/use-scroll-position", | ||
"version": "1.0.35", | ||
"version": "1.0.36", | ||
"author": "n8tb1t <n8tb1t@gmail.com>", | ||
@@ -5,0 +5,0 @@ "license": "MIT", |
@@ -30,2 +30,6 @@ /* eslint-disable react-hooks/exhaustive-deps */ | ||
useLayoutEffect(() => { | ||
if (!isBrowser) { | ||
return | ||
} | ||
const handleScroll = () => { | ||
@@ -32,0 +36,0 @@ if (wait) { |
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
26946
366