Socket
Socket
Sign inDemoInstall

react-base-table

Package Overview
Dependencies
Maintainers
1
Versions
55
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

react-base-table - npm Package Compare versions

Comparing version 1.10.6 to 1.10.7

4

CHANGELOG.md

@@ -5,2 +5,6 @@ # CHANGELOG

## v1.10.7 (2020-07-28)
- fix: `getTotalRowsHeight` could be different before/after render in dynamic mode on initial render
## v1.10.6 (2020-07-25)

@@ -7,0 +11,0 @@

15

es/BaseTable.js

@@ -131,2 +131,4 @@ import _objectWithoutPropertiesLoose from "@babel/runtime/helpers/objectWithoutPropertiesLoose";

_this.forceUpdate();
_this._isResetting = false;

@@ -871,4 +873,2 @@ }, 0);

_proto.componentDidUpdate = function componentDidUpdate(prevProps, prevState) {
var _this2 = this;
var _this$props13 = this.props,

@@ -892,10 +892,5 @@ data = _this$props13.data,

if (estimatedRowHeight) {
// we have to wrap with setTimeout or we would still get the previous value,
// as we reset the inner components directly instead of update the table itself after row heights measured,
// so `componentDidUpdate` won't be invoked after that
setTimeout(function () {
if (_this2.getTotalRowsHeight() !== _this2._totalRowsHeight) {
_this2.forceUpdate();
}
});
if (this.getTotalRowsHeight() !== this._totalRowsHeight) {
this.forceUpdate();
}
}

@@ -902,0 +897,0 @@ };

@@ -171,2 +171,4 @@ "use strict";

_this.forceUpdate();
_this._isResetting = false;

@@ -925,4 +927,2 @@ }, 0);

value: function componentDidUpdate(prevProps, prevState) {
var _this2 = this;
var _this$props13 = this.props,

@@ -946,10 +946,5 @@ data = _this$props13.data,

if (estimatedRowHeight) {
// we have to wrap with setTimeout or we would still get the previous value,
// as we reset the inner components directly instead of update the table itself after row heights measured,
// so `componentDidUpdate` won't be invoked after that
setTimeout(function () {
if (_this2.getTotalRowsHeight() !== _this2._totalRowsHeight) {
_this2.forceUpdate();
}
});
if (this.getTotalRowsHeight() !== this._totalRowsHeight) {
this.forceUpdate();
}
}

@@ -956,0 +951,0 @@ }

{
"name": "react-base-table",
"version": "1.10.6",
"version": "1.10.7",
"description": "a react table component to display large data set with high performance and flexibility",

@@ -5,0 +5,0 @@ "main": "lib/index.js",

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

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