React error/warning cleanup
Signed-off-by: Michael Telatynski <7t3chguy@gmail.com>
This commit is contained in:
parent
15e7559d5b
commit
a782baf510
10 changed files with 62 additions and 85 deletions
|
@ -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);
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue