[WASM] MainPage is created twice when application is refreshed in browser #2607
Labels
kind/bug
Something isn't working
triage/untriaged
Indicates an issue requires triaging or verification.
Current behavior
MainPage and all it's children are created twice when targeting WASM and Application is refresh in the browser
Expected behavior
It should be created once same way as when the application starts ups for the first time and loads in the browser
How to reproduce it (as minimally and precisely as possible)
Just create latest uno templated using mvvm, navigation, fluent design and targeting WASM.
Console.WriteLine("================== Main Page ctor ============");
Run the application in Visual Studio for WASM
In output window Console is printed once
Now clear output window, refresh the application in browser
Console is printed twice and MainPage is created twice
Workaround
No response
Works on UWP/WinUI
None
Environment
Uno.WinUI / Uno.WinUI.WebAssembly / Uno.WinUI.Skia
NuGet package version(s)
mvvm, navigation, fluent, "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: