Skip to content

Hot reload on iOS: Region.Name changed via XAML HR intermittently isn't picked up by navigation #3245

Open

Description

@kazo0

What

Navigation.UI.Tests.Given_Navigation_HotReload.When_RegionNameAddedViaXamlHR_Then_NavigationResolvesNewRegion fails on the iOS simulator (iOS 26.1, Mono interpreter, Debug), with the class run in its own app launch (#3238, build 239627):

Expected updatedPanelNav.Route?.Base to be "AddedRegion" ... because After XAML HR adds Region.Name, navigation should resolve the new region (#3075), but "ExistingRegion" ...

After a XAML hot-reload edit adds a Region.Name, navigation still resolves the old region. This is the #3075 scenario, which works on Skia desktop and on Android (22/22 for the class run alone).

On Android it also failed once, but only when ~100 edits had piled up in one process (#3243). On iOS it fails with the class isolated, so it's iOS-specific. Seen in 1 run so far.

Work

  • Reproduce on a simulator. Check whether the XAML delta reaches the page, or whether the region is resolved before the update applies.
  • Fix, then remove the exclusion from IosTestFilters in stage-runtime-tests-mobile-hotreload.yml.

Activity

  1. added
    kind/bug
    on Oct 15, 2026
  2. changed the title [-]Hot reload on iOS: Region.Name added via XAML HR isn't picked up by navigation[/-] [+]Hot reload on iOS: Region.Name changed via XAML HR intermittently isn't picked up by navigation[/+] on Oct 15, 2026
  3. kazo0 commented on Oct 15, 2026

    @kazo0
    ContributorAuthor

    Update: same family, two more tests. In build 239790 (#3238), with Given_Navigation_HotReload in its own app launch, two more Region.Name XAML-edit tests failed on the iOS simulator. After the edit, navigation resolved an empty route:

    Both passed in the previous iOS runs (builds 239648 and 239767), so it's intermittent. When_RegionNameAddedViaXamlHR failed in 1 of 2 runs. All three are now excluded from IosTestFilters under this issue. A plausible shared cause is navigation resolving the region before the XAML update has been applied to the visual tree, on a slow simulator. Worth checking whether the tests wait on the page actually being replaced, rather than on the metadata update alone.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    area/navigationkind/bug

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions