In my blazor app, I have a page that checks some data in Task OnParametersSetAsync() and may redirect depending on the state of that data. On the prerender, I get a generic NavigationException when calling NavigateTo("my/other/page") and then it runs everything again after the prerender and navigation is successful.
Is this normal? Maybe I should move this check to another place that doesn't run on prerender, but how?
// Landing page from a 3rd party. Check if updates to data from 3rd party are readyprotected override async Task OnParametersSetAsync(){ await RedirectIfDataIsReady(); await base.OnParametersSetAsync();}