React error/warning cleanup

Signed-off-by: Michael Telatynski <7t3chguy@gmail.com>
This commit is contained in:
Michael Telatynski 2019-10-08 12:10:37 +01:00
parent 15e7559d5b
commit a782baf510
10 changed files with 62 additions and 85 deletions

View file

@ -74,15 +74,15 @@ export default class Flair extends React.Component {
};
}
componentWillUnmount() {
this._unmounted = true;
}
componentWillMount() {
componentDidMount() {
this._unmounted = false;
this._generateAvatars(this.props.groups);
}
componentWillUnmount() {
this._unmounted = true;
}
componentWillReceiveProps(newProps) {
this._generateAvatars(newProps.groups);
}