Skip to content

Commit

Permalink
Silence deprecation warning by using the unsafe API
Browse files Browse the repository at this point in the history
Will remove this lifecycle entirely in a later release
  • Loading branch information
gabrielliwerant committed Aug 20, 2019
1 parent 8438fe3 commit 842ec1d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/MUIDataTable.js
Original file line number Diff line number Diff line change
Expand Up @@ -208,7 +208,7 @@ class MUIDataTable extends React.Component {
this.updateDividers = () => {};
}

componentWillMount() {
UNSAFE_componentWillMount() {
this.initializeTable(this.props);
}

Expand Down

0 comments on commit 842ec1d

Please sign in to comment.