@react-hook/window-scroll
Advanced tools
Comparing version 1.0.6 to 1.0.7
@@ -6,6 +6,11 @@ 'use strict' | ||
var _react = require('react') | ||
var _react = _interopRequireDefault(require('react')) | ||
var _throttle = require('@react-hook/throttle') | ||
function _interopRequireDefault(obj) { | ||
return obj && obj.__esModule ? obj : {default: obj} | ||
} | ||
const {useEffect} = _react.default | ||
const emptyArr = [] | ||
@@ -31,3 +36,3 @@ | ||
;(0, _react.useEffect)(() => { | ||
useEffect(() => { | ||
const handleScroll = _ref | ||
@@ -34,0 +39,0 @@ window.addEventListener('scroll', handleScroll) |
@@ -1,2 +0,3 @@ | ||
import {useEffect} from 'react' | ||
import React from 'react' | ||
const {useEffect} = React | ||
import {useThrottle} from '@react-hook/throttle' | ||
@@ -3,0 +4,0 @@ const emptyArr = [] |
{ | ||
"name": "@react-hook/window-scroll", | ||
"version": "1.0.6", | ||
"version": "1.0.7", | ||
"homepage": "https://github.com/jaredLunde/react-hook/tree/master/packages/window-scroll#readme", | ||
@@ -61,2 +61,3 @@ "repository": "github:jaredLunde/react-hook", | ||
"@typescript-eslint/parser": "latest", | ||
"babel-plugin-optimize-react": "^0.0.4", | ||
"cross-env": "latest", | ||
@@ -63,0 +64,0 @@ "eslint": "latest", |
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
7872
70
20