mirror of
https://github.com/wassname/talk.git
synced 2026-07-19 11:28:50 +08:00
Only refetch for login
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