Skip to content

Commit 3a7e6f1

Browse files
fix(firstMile): data listening component clear old interval id's when bucket changed (#4512)
1 parent 399f216 commit 3a7e6f1

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

src/homepageExperience/components/DataListening.tsx

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -120,7 +120,11 @@ class DataListening extends PureComponent<Props, State> {
120120
} = this.props
121121

122122
this.setState({loading: LoadingState.Loading})
123-
continuouslyCheckForData(orgID, bucket, this.updateResponse)
123+
this.intervalID = continuouslyCheckForData(
124+
orgID,
125+
bucket,
126+
this.updateResponse
127+
)
124128
}
125129
}
126130

0 commit comments

Comments
 (0)