@page "/"
<p>@progress</p>
@code {
private int progress = 0;
protected override async Task OnInitializedAsync()
{
// This will be rendered
progress = 10;
await Task.Delay(1500);
// This will NOT be rendered
progress = 15;
await Task.Delay(1500);
// This will be rendered because afterwards the Task is finished
progress = 20;
}
}