Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix(environments): Fix stream view fetching too many times #7250

Merged
merged 1 commit into from Feb 14, 2018

Conversation

lynnagara
Copy link
Member

Related to #7243

@@ -531,6 +531,9 @@ const Stream = createReactClass({
},

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

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

this implies that the only context change we care about ever is environment, is that true?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yep. In this view you can't modify project or organization so we don't have to listen for it (with the exception of starring the project and we want to ignore that)

@lynnagara lynnagara changed the title fix(environments): Reduce stream view fetching too many times fix(environments): Fix stream view fetching too many times Feb 14, 2018
@lynnagara lynnagara merged commit f425c63 into master Feb 14, 2018
@lynnagara lynnagara deleted the reduce-stream-fetches branch February 14, 2018 23:36
@github-actions github-actions bot locked and limited conversation to collaborators Dec 22, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants