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]: NavigateAndReset doesn't work in first view #3820

Open
RobinSrs opened this issue May 27, 2024 · 4 comments
Open

[Bug]: NavigateAndReset doesn't work in first view #3820

RobinSrs opened this issue May 27, 2024 · 4 comments
Labels

Comments

@RobinSrs
Copy link

Describe the bug 🐞

In later versions of ReactiveUi (it works in 19.5.1, but not in 20.1.1) the navigation doesn't work properly.

This is related to the following fix: 14821ae, which was related to problem: #3640

Some context:
We have recently started to migrate our ReactiveUi application from xamarin to maui, and noticed that the NavigateAndReset function didn't work in the first view anymore, and have encountered similar problems with the Navigate function elsewhere. Simply put: one can call the function, but nothing happens. This is because the where clause of the fix prohibits the execution of it.

Step to reproduce

  1. Run the project listed here: https://github.com/RobinSrs/ReactiveUITestProject in an android emulator or device.
  2. Press one of the two flag buttons.
  3. You see a spinner appear, but nothing happens (the navigate and reset function doesn't work)
  4. Uninstall ReactiveUI.Maui with the nuget manager, Install version 19.5.1
  5. Run again, press one of the two buttons
  6. You have now successfully navigated to a new page.

Reproduction repository

https://github.com/RobinSrs/ReactiveUITestProject

Expected behavior

In all versions of the ReactiveUI, the Navigate and NavigateAndReset functions should work at any time it is called.

Screenshots 🖼️

20240527_162820.mp4

IDE

No response

Operating system

Android

Version

No response

Device

No response

ReactiveUI Version

20.1.1

Additional information ℹ️

No response

@RobinSrs RobinSrs added the bug label May 27, 2024
@ChrisPulman
Copy link
Member

@RobinSrs Thank you for raising this issue and sorry to hear it's not working as expected, I will take a look this week and look into resolving this issue.

@RobinSrs
Copy link
Author

@ChrisPulman

Do you have any updates on this issue?

@anaisbetts
Copy link
Member

@RobinSrs Keep in mind that you can always copy-paste src/ReactiveUI.Maui/RoutedViewHost.cs into your app, and change it however you want, you don't need to wait for ReactiveUI to make a release. This goes for nearly every aspect of the framework, you can almost always make your own version of $SOMETHING and register over the built-one

@RobinSrs
Copy link
Author

Hi @anaisbetts

I am aware of that, and have done something very similar to make it work in our application :) There isn't a high priority for us, but I was still curious if there were any updates on this issue.

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

No branches or pull requests

3 participants