File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -40,7 +40,7 @@ export class App extends Component {
4040 } ;
4141 }
4242
43- componentWillMount ( ) {
43+ UNSAFE_componentWillMount ( ) {
4444 // setInterval(this.addMessage.bind(this), 3000);
4545 }
4646
Original file line number Diff line number Diff line change @@ -25,7 +25,7 @@ import {
2525import classNames from 'classnames' ;
2626
2727export class MessageBox extends Component {
28- componentWillReceiveProps ( nextProps ) {
28+ UNSAFE_componentWillReceiveProps ( nextProps ) {
2929 if ( nextProps . focus !== this . props . focus && nextProps . focus === true ) {
3030 if ( this . refs [ 'message' ] ) {
3131 this . refs [ 'message' ] . scrollIntoView ( {
Original file line number Diff line number Diff line change @@ -35,7 +35,7 @@ export class MessageList extends Component {
3535 }
3636 }
3737
38- componentWillReceiveProps ( nextProps ) {
38+ UNSAFE_componentWillReceiveProps ( nextProps ) {
3939 if ( ! this . mlistRef )
4040 return ;
4141 if ( nextProps . dataSource . length !== this . props . dataSource . length ) {
You can’t perform that action at this time.
0 commit comments