mirror of
https://github.com/wassname/talk.git
synced 2026-07-03 19:15:26 +08:00
Merge pull request #591 from coralproject/refetch-profile-only-after-login
Only refetch for login on `My Profile`.
This commit is contained in:
@@ -26,9 +26,9 @@ class ProfileContainer extends Component {
|
||||
}
|
||||
|
||||
componentWillReceiveProps(nextProps) {
|
||||
if (this.props.auth.loggedIn !== nextProps.auth.loggedIn) {
|
||||
if (!this.props.auth.loggedIn && nextProps.auth.loggedIn) {
|
||||
|
||||
// Refetch after login/logout.
|
||||
// Refetch after login.
|
||||
this.props.data.refetch();
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user