File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -38,7 +38,7 @@ export class App extends Component {
3838 } ;
3939 }
4040
41- componentWillMount ( ) {
41+ UNSAFE_componentWillMount ( ) {
4242 // setInterval(this.addMessage.bind(this), 3000);
4343 }
4444
Original file line number Diff line number Diff line change @@ -24,7 +24,7 @@ import {
2424import classNames from 'classnames' ;
2525
2626export class MessageBox extends Component {
27- componentWillReceiveProps ( nextProps ) {
27+ UNSAFE_componentWillReceiveProps ( nextProps ) {
2828 if ( nextProps . focus !== this . props . focus && nextProps . focus === true ) {
2929 if ( this . refs [ 'message' ] ) {
3030 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