Skip to content

[P1][HR][Gaps][Navigation] Adding/removing a RouteMap at runtime has no effect #3072

Open

Description

@kazo0

Source

Sub-issue of unoplatform/private#926. Tracked from the HR/HD test matrix.

Current behavior

Adding or removing a RouteMap at runtime via Hot Reload has no effect — the new/changed routes are not picked up by the navigator until the app is restarted.

Expected behavior

Edits to the route registration code (App.xaml.host.cs or wherever RouteMaps are registered) should apply via Hot Reload so newly added routes can be navigated to, and removed routes should stop resolving, without requiring an app restart.

How to reproduce

  1. Run an Uno.Extensions navigation sample (e.g. Chefs).
  2. While the app is running, add a new RouteMap entry to RegisterRoutes (e.g. new RouteMap("NewRoute", View: views.FindByViewModel<NewModel>())).
  3. Apply Hot Reload.
  4. Try to navigate to the new route via XAML or code-behind — it does not resolve.
  5. Repeat with removal — removed routes still resolve until restart.

Goal

  • Make RouteMaps registration HR-aware so route additions/removals/edits apply at runtime.
  • Once fixed, add a regression test in the Hot Reload testharness that mutates RegisterRoutes and asserts the new/removed route is honored.

Priority

Failing scenario — high priority for 6.5 / .NET Conf 2025 demo readiness.

Activity

  1. added
    kind/bug
    priority/important-soon
    on Apr 30, 2026
  2. changed the title [-][HR][Gaps][Navigation] Adding/removing a RouteMap at runtime has no effect[/-] [+][P1][HR][Gaps][Navigation] Adding/removing a RouteMap at runtime has no effect[/+] on Apr 30, 2026
  3. self-assigned this
    on May 5, 2026
  4. removed
    kind/bug
    priority/important-soon
    on Aug 7, 2026
  5. added theissue type on Aug 7, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions