Calling async methods in Blazor view
问题 I have a server-side blazor client and I'm trying to modify the MainLayout razor page by having a Login check. I'm currently using Blazored for localstorage saving, and I'm currently using to see if a token is saved to see if user is logged in, however I'm not sure how I translate this in the if statement in razor page because it wants async method. My login check is pretty simple as shown below. public async Task<bool> IsLoggedIn() { return await m_localStorage.ContainKeyAsync("token")