User2110873642 posted
how do i call this async function properly from blazor syntax?
Blazor component:
<h3>LoginTest</h3>
//The await operator can only be used in an async method.
@if (await GetSomething())
{
}
some class library:
public async Task<bool> GetSomething()
{
//I changed the function to Async task, because the code below required it.
return await BlazoredSessionStorage.GetItemAsync<string>("Something");
}