Skip to content

[HotReload][Uno Navigator] Page Content is gone when Reload is triggered #80

Open

Description

@DevTKSS

Current behavior

When e.g. NavigationView Properties are edited and HotReload is triggered its Content is gone and requires to get annother click on any NavigationViewItem:
https://github.com/user-attachments/assets/d2f2bb26-df22-4251-9a6e-1da73a5fea1b

Expected behavior

Page Content of Default Route should be there like when the App is started regulary?

Which tool(s) are affected?

No response

How to reproduce it (as minimally and precisely as possible)

recommended uno app preset + mvux+uno.regions+DI+NavigationView+some content

edit properties like normal Dev cycle

Save file and click Reload (it doesnt do that by save althought thats set in vs 2022)

full source code: https://github.com/DevTKSS/DevTKSS.MvuxSampleApps MainPage is the NavigationView

Workaround

have to click again on any item to navigate again to that page you want.

Affected platforms

Desktop (Skia), Windows

Uno.Sdk version

5.6.54

IDE used

Visual Studio 2022

IDE version

17.13.6

Uno Platform Extension version

5.46.46.70

Relevant plugins

No response

Anything else we need to know?

No response

Activity

  1. added
    triage/untriaged
    on Apr 26, 2025
  2. removed
    triage/untriaged
    on Apr 29, 2025
  3. added theissue type on Apr 29, 2025
  4. nickrandolph commented on Apr 29, 2025

    @nickrandolph

    This will be a limitation of navigation for the initial release of HD due to the need to maintain more complex state. If you use pages for the content inside the navigationview, only the page content should be updated, without reloading the entire page

  5. DevTKSS commented on Apr 29, 2025

    @DevTKSS
    Author

    @nickrandolph ehm... dont know if you did understood this correctly...
    My Problem is not with HotDesign, while its of course happening there to, but with the Hot Reload feature. Had this already before HD was not even released at all, just did think it was my mistake. Investigated but my code seemed to be alright as far as I can tell.

    So... I did not read anywhere, that with just Hot Reload, its normal and you e.g. update something in the grid row above the navigation view, where you might see the native SecondPage "as is" or any other Page, this content of the Navigation View should be gone? Imagine the behaviour as if the Navigator would just "forget" what Navigation Content you might see there before reloading.

    was told studio repository is also meant for Hot Reload issues from the restructuring of both HD and HR below Studio in Docs

  6. self-assigned this
    on May 26, 2025
  7. added this to the 2025 Feedback milestone on Jun 20, 2025
  8. removed their assignment
    on Jun 24, 2025
  9. DevTKSS commented on Jun 29, 2025

    @DevTKSS
    Author

    @nickrandolph State update for this:
    Still present with sdk version 6.0.146
    As its coming from the hot Reload which is used by Hot Design, both are affected but not buil breaking.

    Would count it as "Consumer Expirience - would be Nice to get this fixed" as the workaround seems to be, to click on another navigationViewItem and again on the one from before.

    Are there any known reasons for this to be happening? Is this resulting from the Uno Navigator or Mvux Source Gen or from MS themselves so that Uno can maybe not fix it?

    I could think of that might be reasoned through a too early update of the content through the navigator 🤔 do you know if thats possible?

    As the DataContext is even without using Hotreload in mvux apps especially unreliable and not passed in directly correct, to me that could be maybe resulting in this behavior...

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

Metadata

Metadata

Assignees

No one assigned

    Type

    Projects

    No projects

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions