Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

react-infinite-scroll-container

Package Overview
Dependencies
Maintainers
1
Versions
11
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

react-infinite-scroll-container - npm Package Compare versions

Comparing version 1.0.8 to 1.0.9

5

dist/InfiniteScroll.js

@@ -104,7 +104,8 @@ 'use strict';

if (offset < Number(this.props.threshold)) {
this.detachScrollListener();
// Call loadMore after detachScrollListener to allow for non-async loadMore functions
if (typeof this.props.loadMore == 'function') {
this.props.loadMore(this.pageLoaded += 1);
}
// Call loadMore after detachScrollListener to allow for non-async loadMore functions to run
// I changed the location of the detachScrollListener because loadMore called twice
this.detachScrollListener();
}

@@ -111,0 +112,0 @@ }

2

package.json
{
"name": "react-infinite-scroll-container",
"version": "1.0.8",
"version": "1.0.9",
"description": "Infinite scroll component for React in ES6",

@@ -5,0 +5,0 @@ "main": "dist/InfiniteScroll.js",

@@ -91,7 +91,8 @@ import React, { Component, PropTypes } from 'react';

if(offset < Number(this.props.threshold)) {
this.detachScrollListener();
// Call loadMore after detachScrollListener to allow for non-async loadMore functions
if (typeof this.props.loadMore == 'function') {
this.props.loadMore(this.pageLoaded += 1);
}
// Call loadMore after detachScrollListener to allow for non-async loadMore functions to run
// I changed the location of the detachScrollListener because loadMore called twice
this.detachScrollListener();
}

@@ -98,0 +99,0 @@ }

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc