[v6] fixes broken lifecycle.js (#1699)

* resumes broken lifecycle.js

* add back componentDidMount in lifecycle.js
This commit is contained in:
Yurui Zhang 2019-12-04 00:27:25 -05:00 committed by Tanner Linsley
parent 3107517226
commit 22c703391c
2 changed files with 3 additions and 4 deletions

1
.gitignore vendored
View File

@ -9,3 +9,4 @@ react-table.css
.idea
.DS_Store
.history
.vscode

View File

@ -1,9 +1,7 @@
export default Base =>
class extends Base {
constructor (props) {
super(props)
this.state = this.calculateNewResolvedState(this.getDataModel(this.getResolvedState(), true))
UNSAFE_componentWillMount () {
this.setStateWithData(this.getDataModel(this.getResolvedState(), true))
}
componentDidMount () {