mirror of
https://github.com/ascribe/onion.git
synced 2024-12-22 17:33:14 +01:00
Fix user fetch dispatch collision since the PieceContainer also fetches the user
This commit is contained in:
parent
9b99e3ae09
commit
7cc51f81d0
@ -15,7 +15,7 @@ const PRHero = React.createClass({
|
|||||||
|
|
||||||
componentDidMount() {
|
componentDidMount() {
|
||||||
UserStore.listen(this.onChange);
|
UserStore.listen(this.onChange);
|
||||||
UserActions.fetchCurrentUser();
|
UserActions.fetchCurrentUser.defer();
|
||||||
},
|
},
|
||||||
|
|
||||||
componentWillUnmount() {
|
componentWillUnmount() {
|
||||||
@ -39,4 +39,4 @@ const PRHero = React.createClass({
|
|||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|
||||||
export default PRHero;
|
export default PRHero;
|
||||||
|
Loading…
Reference in New Issue
Block a user