Skip to content

Commit

Permalink
Switch to unsafe API for additional instances of deprecated lifecycle
Browse files Browse the repository at this point in the history
  • Loading branch information
gabrielliwerant committed Aug 20, 2019
1 parent 842ec1d commit 36d5d7b
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion docs/utils/withRoot.js
Original file line number Diff line number Diff line change
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/components/Popover.js
Original file line number Diff line number Diff line change
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 36d5d7b

Please sign in to comment.