Skip to content

Commit

Permalink
Merge pull request #6 from 274188A/patch-1
Browse files Browse the repository at this point in the history
Bug Fix: set the Busy flag earlier
  • Loading branch information
JeremyLikness authored Jun 18, 2020
2 parents df8ed6f + 92072fa commit e6ac27b
Showing 1 changed file with 8 additions and 2 deletions.
10 changes: 8 additions & 2 deletions ContactsApp.Controls/EditContactControl.razor
Original file line number Diff line number Diff line change
Expand Up @@ -88,13 +88,19 @@ else
/// <returns>A <see cref="Task"/>.</returns>
protected override async Task OnParametersSetAsync()
{
Service.SetUser(User);
Busy = true; // start async
//Busy = true; // start async
Contact = await Service.Repo.LoadAsync(ContactId, null, true);
Busy = false; // end async
await base.OnInitializedAsync();
}

public override async Task SetParametersAsync(ParameterView parameters)
{
Busy = true;
await base.SetParametersAsync(parameters);
}

/// <summary>
/// Result of form validation.
/// </summary>
Expand Down

0 comments on commit e6ac27b

Please sign in to comment.