mirror of
https://github.com/wassname/talk.git
synced 2026-07-15 11:26:58 +08:00
contains/Stream setCommentCountCache waits for refetch promise
This commit is contained in:
@@ -112,8 +112,8 @@ class StreamContainer extends React.Component {
|
||||
|
||||
componentDidMount() {
|
||||
if (this.props.previousTab) {
|
||||
this.props.data.refetch();
|
||||
this.props.setCommentCountCache(0);
|
||||
this.props.data.refetch()
|
||||
.then(() => this.props.setCommentCountCache(0));
|
||||
}
|
||||
this.countPoll = setInterval(() => {
|
||||
this.getCounts(this.props.data.variables);
|
||||
|
||||
Reference in New Issue
Block a user