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

Only render NoChanges when there are.. no changes #6660

Merged
merged 2 commits into from
Jan 22, 2019

Conversation

niik
Copy link
Member

@niik niik commented Jan 18, 2019

Overview

Apparently we've been using the NoChanges component as a fallback component while we're waiting for the Diff to load. It's been this way since forever but the last release with the redesigned no changes blank slate made it more noticeable, especially on slower environments.

This PR ensures that we're only rendering the NoChanges component when there are, in fact, no changes.

Closes #6658

Release notes

Notes: [Fix] Don't show the no local changes view when switching between changed files

@niik niik added the ready-for-review Pull Requests that are ready to be reviewed by the maintainers label Jan 18, 2019
@niik niik added this to the 1.6.1 milestone Jan 18, 2019
@outofambit outofambit self-assigned this Jan 18, 2019
@outofambit
Copy link
Contributor

tried out locally and verified it fixes the issue ✅

@tierninho
Copy link
Contributor

Tested and LGTM.

I did spot a similar "No File Selected" placeholder when scrolling History commits (both as a whole and individual files). Not as much as an eyesore, but still somewhat distracting. Shall I open a new issue?

image

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
ready-for-review Pull Requests that are ready to be reviewed by the maintainers
Projects
None yet
Development

Successfully merging this pull request may close these issues.

"No local changes" window flashes every time when switching between changed files
3 participants