Skip to content

Commit

Permalink
componentWillMount is deprecated and should not be used. Instead use …
Browse files Browse the repository at this point in the history
  • Loading branch information
jeremykay authored and pgilad committed May 30, 2018
1 parent d0d5832 commit 687d7e3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ class PageVisibility extends React.Component {
};
}

componentWillMount() {
componentDidMount() {
if (!this.state.isSupported) {
return;
}
Expand Down

0 comments on commit 687d7e3

Please sign in to comment.