Open
Description
Description
Maybe this is the expected outcome, however, I believe it makes more sense that the framework disconnects the page's handler even though it is not currently displayed, to avoid memory leaks and consistency.
Only tested on iOS and Android.
Steps to Reproduce
- Clone https://github.com/Vetle444/MauiTestApp/tree/removePageHandler/MauiTestApp
- Run app
- Click either "Test Page Modal" or "Test Page" button
- Navigate to next page
- Click "Remove test page 1"
- Observe that no dialog appears saying that the Handler of Test Page 1 is disconnected.
- If you do a normal back navigation from Test Page 1, the handler is disconnected, as expected.
Link to public reproduction project repository
https://github.com/Vetle444/MauiTestApp/tree/removePageHandler/MauiTestApp
Version with bug
9.0.70 SR7
Is this a regression from previous behavior?
Not sure, did not test other versions
Last version that worked well
No response
Affected platforms
iOS, Android, I was not able test on other platforms
Affected platform versions
No response
Did you find any workaround?
Disconnect handler manually