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

[BUG] <When SelectTabAsync calls OnNavigatedTo on the target page parameters.GetNavigationMode() will result in: System.ArgumentNullException> #3310

Open
DaveDaBrave opened this issue Feb 7, 2025 · 0 comments

Comments

@DaveDaBrave
Copy link

Description

If in the app a tab gets selected manually OnNavigatedTo() doesn't get called.
If a navigation in code gets triggered, as for example via the button with title "Click me" on the first tab, OnNavigatedTo() gets also called on the target tab's page.

When SelectTabAsync calls OnNavigatedTo on the target page parameters.GetNavigationMode() will result in:

System.ArgumentNullException: Value cannot be null.
(Parameter 'NavigationMode is not available')
at
Prism.Navigation.NavigationParametersExtensions.GetNavigationMode(INavigationParameters parameters)

Reproduction project is available here: PrismGetNavigationModeNull

Steps to Reproduce

  1. Start the app and tap button "Click me" => 4th tab gets selected and also OnNavigatedTo gets called with 'NavigationMode is not available'
  2. If 4th tab is selected manually OnNavigatedTo doesn't get called

Platform with bug

.NET MAUI

Affected platforms

iOS

Did you find any workaround?

No

Relevant log output

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

No branches or pull requests

1 participant