Skip to content

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

Open
@RobinSrs

Description

@RobinSrs

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions