Skip to content

Commit

Permalink
fix(environments): Reduce stream view fetching too many times (#7250)
Browse files Browse the repository at this point in the history
  • Loading branch information
lynnagara committed Feb 14, 2018
1 parent d71ede4 commit f425c63
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/sentry/static/sentry/app/views/stream.jsx
Expand Up @@ -530,6 +530,9 @@ const Stream = createReactClass({
},

onLatestContextChange(context) {
// Don't do anything unless environment is changing
if (context.environment === this.state.activeEnvironment) return;

if (this.state.hasEnvironmentsFeature) {
// Always query the currently active environment selection unless
// the environment parameter is part of the saved search
Expand Down

0 comments on commit f425c63

Please sign in to comment.