-
Notifications
You must be signed in to change notification settings - Fork 10.5k
Closed
Labels
area-blazorIncludes: Blazor, Razor ComponentsIncludes: Blazor, Razor Components
Milestone
Description
Wrap OnNavigateTo from
aspnetcore/src/Components/Endpoints/src/Rendering/EndpointHtmlRenderer.EventDispatch.cs
Line 126 in ee050bd
| private async Task OnNavigateTo(string uri) |
passed to
NavigationManager's initialization here:| ((IHostEnvironmentNavigationManager)navigationManager)?.Initialize(GetContextBaseUri(httpContext.Request), GetFullUri(httpContext.Request), OnNavigateTo); |
in
GetErrorHandledTask method, like we do for not found: | _ = GetErrorHandledTask(SetNotFoundResponseAsync(navigationManager.BaseUri, args)); |
because in RemoteNavigationManager we are invoking it without waiting for async-thrown exceptions:
| _ = _onNavigateTo(absoluteUriString); |
GetErrorHandledTask would log them.Copilot
Metadata
Metadata
Assignees
Labels
area-blazorIncludes: Blazor, Razor ComponentsIncludes: Blazor, Razor Components