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

Warnings about the navigation (regression with 5.4-dev) #2511

Closed
ArchieCoder opened this issue Aug 14, 2024 · 1 comment · Fixed by #2529
Closed

Warnings about the navigation (regression with 5.4-dev) #2511

ArchieCoder opened this issue Aug 14, 2024 · 1 comment · Fixed by #2529
Assignees
Labels
kind/bug Something isn't working kind/regression Something was working, now it isn't

Comments

@ArchieCoder
Copy link

ArchieCoder commented Aug 14, 2024

Current behavior

In my app, I have this warning: "Uno.Extensions.Navigation.BrowserAddressBarService: Warning: RouteChanged - Error encountered updating address bar on route changed event - A method was called at an unexpected time." each time I navigate.

I also have these 2 warnings at startup:
Uno.Extensions.Navigation.Navigators.ContentControlNavigator: Warning: Show - Missing view for navigation path ''
Uno.Extensions.Navigation.Regions.NavigationRegion: Warning: AssignParent - (Name: ) Unable to find service provider for root navigator

In a brand new app, I only see this warning:
Uno.Extensions.Navigation.Navigators.ContentControlNavigator: Warning: Show - Missing view for navigation path ''

Expected behavior

No warning or more description about what is wrong. I'm following the best practice to my best knowledge.

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

This is a brand new app with the platforms: Windows, Skia Linux/Mac/PC.

UnoNavigationWarningApp.zip

Workaround

No response

Works on UWP/WinUI

None

Environment

No response

NuGet package version(s)

5.4.0-dev.178 (it works with 5.3)

Affected platforms

No response

IDE

No response

IDE version

No response

Relevant plugins

No response

Anything else we need to know?

No response

@ArchieCoder ArchieCoder added kind/bug Something isn't working triage/untriaged Indicates an issue requires triaging or verification. labels Aug 14, 2024
@kazo0 kazo0 transferred this issue from unoplatform/uno Aug 15, 2024
@ArchieCoder ArchieCoder changed the title Warnings about the navigation Warnings about the navigation (regression with 5.4-dev) Aug 15, 2024
@kazo0
Copy link
Contributor

kazo0 commented Aug 16, 2024

This specific warning:

Could not create a new view because the main window has not yet been created
Uno.Extensions.Navigation.BrowserAddressBarService: Warning: RouteChanged - Error encountered updating address bar on route changed event - A method was called at an unexpected time.

Seems to have started as a result of #2462

@eriklimakc we'll need to find a reliable repro for this and fix it and add some tests around this.

@kazo0 kazo0 added kind/regression Something was working, now it isn't and removed triage/untriaged Indicates an issue requires triaging or verification. labels Aug 16, 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 kind/regression Something was working, now it isn't
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants