Bio and Embed Stream refresh

This commit is contained in:
Belen Curcio
2017-01-30 15:33:08 -03:00
parent f7725f4143
commit b316d626f5
+6
View File
@@ -29,6 +29,12 @@ class Embed extends Component {
state = {activeTab: 0, showSignInDialog: false};
changeTab = (tab) => {
// Everytime the comes from another tab, the Stream needs to be updated.
if (tab === 0) {
this.props.data.refetch()
}
this.setState({
activeTab: tab
});