getting rid of componentWillMount per React 16 specs
This commit is contained in:
@@ -2043,9 +2043,7 @@ class ContactsView extends React.Component {
|
|||||||
this.tnMeContactUpdate = this.tnMeContactUpdate.bind(this);
|
this.tnMeContactUpdate = this.tnMeContactUpdate.bind(this);
|
||||||
this.tnMeSubsUpdated = this.tnMeSubsUpdated.bind(this);
|
this.tnMeSubsUpdated = this.tnMeSubsUpdated.bind(this);
|
||||||
this.resetContactList = this.resetContactList.bind(this);
|
this.resetContactList = this.resetContactList.bind(this);
|
||||||
}
|
|
||||||
|
|
||||||
componentWillMount() {
|
|
||||||
var me = Tinode.getMeTopic();
|
var me = Tinode.getMeTopic();
|
||||||
me.onContactUpdate = this.tnMeContactUpdate;
|
me.onContactUpdate = this.tnMeContactUpdate;
|
||||||
me.onSubsUpdated = this.tnMeSubsUpdated;
|
me.onSubsUpdated = this.tnMeSubsUpdated;
|
||||||
@@ -2422,7 +2420,7 @@ class NewTopicView extends React.Component {
|
|||||||
this.handleGroupByID = this.handleGroupByID.bind(this);
|
this.handleGroupByID = this.handleGroupByID.bind(this);
|
||||||
}
|
}
|
||||||
|
|
||||||
componentWillMount() {
|
componentDidMount() {
|
||||||
this.props.onInitFind();
|
this.props.onInitFind();
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -3574,7 +3572,7 @@ class MessagesView extends React.Component {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
componentWillMount() {
|
componentDidMount() {
|
||||||
this.propsChange(this.props);
|
this.propsChange(this.props);
|
||||||
if (this.messagesScroller) {
|
if (this.messagesScroller) {
|
||||||
this.messagesScroller.addEventListener('scroll', this.fetchMoreMessages);
|
this.messagesScroller.addEventListener('scroll', this.fetchMoreMessages);
|
||||||
|
|||||||
Vendored
+1
-1
File diff suppressed because one or more lines are too long
Reference in New Issue
Block a user