Skip to content

Commit

Permalink
Relocate OnInitializedAsync
Browse files Browse the repository at this point in the history
  • Loading branch information
Capella87 committed Sep 14, 2024
1 parent 3b1684e commit 186ec85
Showing 1 changed file with 6 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,12 @@
[Parameter]
public string? Id { get; set; }

protected override async Task OnInitializedAsync()
{
// TODO: Fetch events from the API server.
_events = await CreateEventDetailsAsync();
}

private async Task<List<EventDetails>> CreateEventDetailsAsync()
{
return await Task.FromResult(new List<EventDetails>
Expand Down Expand Up @@ -84,10 +90,4 @@
}
});
}

protected override async Task OnInitializedAsync()
{
// TODO: Fetch events from the API server.
_events = await CreateEventDetailsAsync();
}
}

0 comments on commit 186ec85

Please sign in to comment.