mirror of
https://github.com/wassname/talk.git
synced 2026-10-01 12:42:56 +08:00
Bio and Embed Stream refresh
This commit is contained in:
1 parent
f7725f4143
commit
b316d626f5
1 file changed
+6
@@ -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
|
||||
});
|
||||
|
||||
Reference in new issue
Block a user