We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 076da73 commit 9dc1ed0Copy full SHA for 9dc1ed0
src/sentry/static/sentry/app/components/internalStatChart.jsx
@@ -34,8 +34,14 @@ class InternalStatChart extends React.Component {
34
return this.state.loading !== nextState.loading;
35
}
36
37
- componentDidUpdate() {
38
- this.fetchData();
+ componentDidUpdate(prevProps) {
+ if (
39
+ prevProps.since !== this.props.since ||
40
+ prevProps.stat !== this.props.stat ||
41
+ prevProps.resolution !== this.props.resolution
42
+ ) {
43
+ this.fetchData();
44
+ }
45
46
47
fetchData() {
0 commit comments