Blazor Oninitializedasync Componente de renderização de exceção não atendida: Não posso esperar nos monitores nesse tempo de execução.
// Avoid .Result, it can easily deadlock.
// This error is because it's not supported by single threaded Web Assembly
private static async Task CalApi()
{
var response = await httpClient.GetAsync(path);
if (response.IsSuccessStatusCode) { ... }
}
Av3