NavigationView disapears on page refresh in WASM #2602
Labels
kind/bug
Something isn't working
triage/untriaged
Indicates an issue requires triaging or verification.
Current behavior
When application loads first time fired form Visual Studio in IIS it all good, but once a refresh button is clicked only "Page One" is shown but whole NavigationView is gone. Also MainPage ctor is not invoked when debugging not sure why.
Screen on first app load
Screen after refresh is clicked: (notice how url has changed) from Mian/One to just /One)
App.xaml.cs
MainPage.xaml
MainPage.xaml.cs
Expected behavior
I expect application to look exactly the same after refresh as before refresh.
How to reproduce it (as minimally and precisely as possible)
Just build the attached solution for wasm and run it in Visual Studio in debug mode.
After application loads in the browser, refresh page
UnoAppNavigation2.zip
Workaround
There is a workaround but it's not ideal since both pages load as soon as application loads even though only the fist page is set to Visible:
App.xaml.cs
MainPage.xaml
Works on UWP/WinUI
None
Environment
Uno.WinUI / Uno.WinUI.WebAssembly / Uno.WinUI.Skia
NuGet package version(s)
"Uno.Sdk": "5.4.10"
Affected platforms
WebAssembly
IDE
Visual Studio 2022
IDE version
No response
Relevant plugins
No response
Anything else we need to know?
No response
The text was updated successfully, but these errors were encountered: