Skip to content

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

4 participants