Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[WASM] MainPage is created twice when application is refreshed in browser #2607

Open
KWodarczyk opened this issue Nov 10, 2024 · 0 comments
Open
Assignees
Labels
kind/bug Something isn't working triage/untriaged Indicates an issue requires triaging or verification.

Comments

@KWodarczyk
Copy link

Current behavior

MainPage and all it's children are created twice when targeting WASM and Application is refresh in the browser

image

image

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

@KWodarczyk KWodarczyk added kind/bug Something isn't working triage/untriaged Indicates an issue requires triaging or verification. labels Nov 10, 2024
@KWodarczyk KWodarczyk changed the title [WASM] MainPage is created twice when refreshed in browser [WASM] MainPage is created twice when application is refreshed in browser Nov 10, 2024
@jeromelaban jeromelaban transferred this issue from unoplatform/uno Nov 11, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
kind/bug Something isn't working triage/untriaged Indicates an issue requires triaging or verification.
Projects
None yet
Development

No branches or pull requests

2 participants