reactiveui / ReactiveUI

An advanced, composable, functional reactive model-view-viewmodel framework for all .NET platforms that is inspired by functional reactive programming. ReactiveUI allows you to abstract mutable state away from your user interfaces, express the idea around a feature in one readable place and improve the testability of your application.
https://www.reactiveui.net
MIT License
8.06k stars 1.12k forks source link

[Bug]: Action passed to WhenActivated not called on MAUI if a page is placed in the "More" tab of a TabbedPage #3572

Open v0idzz opened 1 year ago

v0idzz commented 1 year ago

Describe the bug 🐞

ReactivePage's WhenActivated block action is never called if the page gets placed in the "More" tab of a TabbedPage.

Step to reproduce

  1. Clone the repro repo
  2. Numbers will appear in Console output as tabs are clicked
  3. But they won't appear on tabs placed in the "More" tab

Reproduction repository

https://github.com/v0idzz/maui-reactiveui-repro

Expected behavior

WhenActivated block action is called when I navigate to tabs placed in the "More" tab.

Screenshots 🖼️

https://github.com/reactiveui/ReactiveUI/assets/12448522/da186ca3-d317-45ec-8ba9-08d2ce0de3fa

IDE

Rider macOS

Operating system

macOS

Version

No response

Device

iPhone 14

ReactiveUI Version

19.2.1

Additional information ℹ️

No response

v0idzz commented 1 year ago

Further research suggests that this could be a MAUI issue: https://github.com/dotnet/maui/issues/16175