1
0
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:
Brett Sun 2015-12-10 12:42:23 +01:00
parent 9b99e3ae09
commit 7cc51f81d0

View File

@ -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;