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

rc-virtual-list

Package Overview
Dependencies
Maintainers
1
Versions
128
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

rc-virtual-list - npm Package Compare versions

Comparing version 0.0.0-alpha.11 to 0.0.0-alpha.12

11

es/List.js

@@ -160,8 +160,13 @@ function _typeof(obj) { if (typeof Symbol === "function" && typeof Symbol.iterator === "symbol") { _typeof = function _typeof(obj) { return typeof obj; }; } else { _typeof = function _typeof(obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }; } return _typeof(obj); }

startIndex = _this$state.startIndex,
endIndex = _this$state.endIndex; // Record here since measure item height will get warning in `render`
endIndex = _this$state.endIndex;
var data = _this.props.data; // Record here since measure item height will get warning in `render`
for (var index = startIndex; index <= endIndex; index += 1) {
var eleKey = _this.getIndexKey(index);
var item = data[index]; // Only collect exist item height
_this.itemElementHeights[eleKey] = getNodeHeight(_this.itemElements[eleKey]);
if (item) {
var eleKey = _this.getItemKey(item);
_this.itemElementHeights[eleKey] = getNodeHeight(_this.itemElements[eleKey]);
}
}

@@ -168,0 +173,0 @@ };

@@ -175,8 +175,13 @@ "use strict";

startIndex = _this$state.startIndex,
endIndex = _this$state.endIndex; // Record here since measure item height will get warning in `render`
endIndex = _this$state.endIndex;
var data = _this.props.data; // Record here since measure item height will get warning in `render`
for (var index = startIndex; index <= endIndex; index += 1) {
var eleKey = _this.getIndexKey(index);
var item = data[index]; // Only collect exist item height
_this.itemElementHeights[eleKey] = (0, _itemUtil.getNodeHeight)(_this.itemElements[eleKey]);
if (item) {
var eleKey = _this.getItemKey(item);
_this.itemElementHeights[eleKey] = (0, _itemUtil.getNodeHeight)(_this.itemElements[eleKey]);
}
}

@@ -183,0 +188,0 @@ };

{
"name": "rc-virtual-list",
"version": "0.0.0-alpha.11",
"version": "0.0.0-alpha.12",
"description": "React Virtual List Component",

@@ -5,0 +5,0 @@ "keywords": [

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