Blazor Pages rendering before async methods finish, breaking the page?
The below code is crashing my app because
I thought the while loop would ensure that it can never continue but I guess it continues because it's returning a
ChatGPT suggests I added a Delay of 200ms after the command but it doesn't really feel like it would guarantee the issue is solved.
Thanks!
applicationUser is null when it's referenced in the HTML. This is a common issue I keep facing, how are you meant to handle it?I thought the while loop would ensure that it can never continue but I guess it continues because it's returning a
Task?ChatGPT suggests I added a Delay of 200ms after the command but it doesn't really feel like it would guarantee the issue is solved.
Thanks!
