Move code out of deprecated componentWillMount()
> warning: Warning: componentWillMount has been renamed, and is not recommended for use. See https://fb.me/react-unsafe-component-lifecycles for details. * Move code with side effects to componentDidMount, and set initial state in the constructor
This commit is contained in:
parent
5a6e0beb53
commit
6a7f6805d9
3 changed files with 14 additions and 19 deletions
|
|
@ -339,7 +339,7 @@ class Logs extends React.Component {
|
|||
this.getLogs();
|
||||
}
|
||||
|
||||
componentWillMount() {
|
||||
componentDidMount() {
|
||||
this.getServerTimeOffset();
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue