Merge branch 'master' into invalidate-old-data

This commit is contained in:
Chi Vinh Le
2017-05-16 18:17:45 +07:00
@@ -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();
}
}