Skip to content

Adding a route to a Blazor component doesn't work with hot reload #52582

@danroth27

Description

@danroth27

Repro steps:

  • Create a new Blazor Web App with the default options
  • Run the app
  • In Counter.razor add @page "/counter2"
  • Apply the change to the running app using hot reload
  • Try to browse to /counter2

Expected result: The Counter component renders when browsing to /counter2
Actual result: Browsing to /counter2 results in a 404
Workaround: Manually restart the app

Metadata

Metadata

Assignees

No one assigned

    Labels

    Pillar: Dev ExperiencePriority:1Work that is critical for the release, but we could probably ship withoutarea-blazorIncludes: Blazor, Razor ComponentsenhancementThis issue represents an ask for new feature or an enhancement to an existing onefeature-hot-reloadThis issue is related to the Hot Reload feaaturetriaged

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions