Skip to content
This repository was archived by the owner on Jun 21, 2023. It is now read-only.

Commit 9060e89

Browse files
committed
Set IsLoading before await.
Previously was flashing up empty content before showing the spinner.
1 parent c909f45 commit 9060e89

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/GitHub.App/ViewModels/GitHubPane/IssueListViewModelBase.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -126,6 +126,7 @@ public async Task InitializeAsync(ILocalRepositoryModel repository, IConnection
126126
LocalRepository = repository;
127127
SelectedState = States.FirstOrDefault();
128128
AuthorFilter = new UserFilterViewModel(LoadAuthors);
129+
IsLoading = true;
129130

130131
var parent = await repositoryService.FindParent(
131132
HostAddress.Create(repository.CloneUrl),
@@ -159,7 +160,6 @@ public async Task InitializeAsync(ILocalRepositoryModel repository, IConnection
159160
AuthorFilter.WhenAnyValue(x => x.Selected).Skip(1).SelectUnit())
160161
.Subscribe(_ => FilterChanged());
161162

162-
IsLoading = true;
163163
await Refresh();
164164
}
165165

0 commit comments

Comments
 (0)