[Blazor] Router seems to be rendering twice #47058
Labels
area-blazor
Includes: Blazor, Razor Components
bug
This issue describes a behavior which is not expected - a bug.
feature-blazor-routing
Features related to routing in Blazor applications
Milestone
Uh oh!
There was an error while loading. Please reload this page.
From what I can tell, when there is no handler passed to the router, it will render the component twice:
https://github.com/dotnet/aspnetcore/blob/main/src/Components/Components/src/Routing/Router.cs#L256-L259
Probably there should be an early return after the highlighted
Refresh
The text was updated successfully, but these errors were encountered: