Skip to content

[Blazor] Router seems to be rendering twice #47058

@javiercn

Description

@javiercn

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

Metadata

Metadata

Assignees

Labels

area-blazorIncludes: Blazor, Razor ComponentsbugThis issue describes a behavior which is not expected - a bug.feature-blazor-routingFeatures related to routing in Blazor applications

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions