Skip to content

Commit

Permalink
Silence deprecation warning by using the unsafe API (#847)
Browse files Browse the repository at this point in the history
* Silence deprecation warning by using the unsafe API

Will remove this lifecycle entirely in a later release

* Switch to unsafe API for additional instances of deprecated lifecycle
  • Loading branch information
gabrielliwerant committed Aug 22, 2019
1 parent 7edbd4a commit fc73f14
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion docs/utils/withRoot.js
Expand Up @@ -5,7 +5,7 @@ import getPageContext from './getPageContext';

function withRoot(Component) {
class WithRoot extends React.Component {
componentWillMount() {
UNSAFE_componentWillMount() {
this.pageContext = this.props.pageContext || getPageContext();
}

Expand Down
2 changes: 1 addition & 1 deletion src/MUIDataTable.js
Expand Up @@ -208,7 +208,7 @@ class MUIDataTable extends React.Component {
this.updateDividers = () => {};
}

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

Expand Down
2 changes: 1 addition & 1 deletion src/components/Popover.js
Expand Up @@ -8,7 +8,7 @@ class Popover extends React.Component {
open: false,
};

componentWillMount() {
UNSAFE_componentWillMount() {
this.anchorEl = null;
}

Expand Down

0 comments on commit fc73f14

Please sign in to comment.