mirror of
https://github.com/wassname/talk.git
synced 2026-08-13 12:40:11 +08:00
Bio and Embed Stream refresh
This commit is contained in:
@@ -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