react-within-viewport
Advanced tools
Comparing version 1.0.2 to 1.0.3
{ | ||
"name": "react-within-viewport", | ||
"version": "1.0.2", | ||
"version": "1.0.3", | ||
"description": "Debounced React high order component to flag when it's container is inside the viewport.", | ||
@@ -5,0 +5,0 @@ "main": "dist/index.js", |
@@ -55,4 +55,4 @@ import React, { Component } from 'react' | ||
return ( | ||
shallowEqual(this.props, nextProps) || | ||
shallowEqual(this.inViewport(this.state), this.inViewport(nextState)) | ||
!shallowEqual(this.props, nextProps) || | ||
!shallowEqual(this.inViewport(this.state), this.inViewport(nextState)) | ||
) | ||
@@ -59,0 +59,0 @@ } |
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
28530