react-tabulator
Advanced tools
Comparing version 0.5.9 to 0.5.10
@@ -1,2 +0,2 @@ | ||
## [0.5.8] - 2018-10-14 | ||
## [0.5.10] - 2018-10-14 | ||
@@ -6,3 +6,3 @@ ### Added | ||
- `src/css` - css files for themes. | ||
- `use-react-15` branch for React 15.x | ||
- `use-react-15` branch for React 15.x and `src/React15Tabulator.tsx` | ||
### Changed | ||
@@ -9,0 +9,0 @@ - use getDerivedStateFromProps so we can set grid data from state. (updated Examples) |
@@ -88,7 +88,10 @@ "use strict"; | ||
}; | ||
// this is for React 15.x only, will not be triggered with React 16.5.x | ||
// this is for React 15.x only | ||
default_1.prototype.componentWillReceiveProps = function (props) { | ||
// console.log('- componentWillReceiveProps'); | ||
var _this = this; | ||
if (!isSameArray(this.state.data, props.data)) { | ||
this.setState({ data: props.data }); | ||
// console.log('- componentWillReceiveProps'); | ||
this.setState({ data: props.data }, function () { | ||
_this.table.setData(_this.state.data); | ||
}); | ||
} | ||
@@ -95,0 +98,0 @@ }; |
{ | ||
"name": "react-tabulator", | ||
"version": "0.5.9", | ||
"version": "0.5.10", | ||
"description": "React Tabulator component", | ||
@@ -5,0 +5,0 @@ "main": "lib/index.js", |
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
500970
6300