Skip to content

Conversation

@SyedAbdulAzeemSF4852
Copy link
Contributor

Note

Are you waiting for the changes in this PR to be merged?
It would be very helpful if you could test the resulting artifacts from this PR and let us know in a comment if this change resolves your issue. Thank you!

Issue Details

  • When navigating to a new ShellItem using a route like //SomeRoute/SomePage, and SomePage specifies Shell.PresentationMode="Modal", the page’s OnAppearing event is called twice.

Root Cause

  • During Shell navigation between different ShellItems (e.g., //tab1 to //tab2/modal), modal pages receive duplicate lifecycle events because the old ShellSection calls SendDisappearing() on the modal page during its cleanup, but the modal page now belongs to the new ShellSection, which also manages its lifecycle events.

Description of Change

  • Added an IsVisibleSection check in PresentedPageDisappearingmethod to ensure lifecycle events are only sent by the active ShellSection. This prevents duplicate events on modal pages during ShellItem transitions by blocking non-visible (previous) ShellSections from managing pages they no longer own.

Issues Fixed

Fixes #31584

Validated the behaviour in the following platforms

  • Windows
  • Android
  • iOS
  • Mac

Output

Platform Before After
iOS
iOS_Before.mov
iOS_After.mov
Android
Android_Before.mov
Android_After.mov

@dotnet-policy-service dotnet-policy-service bot added the community ✨ Community Contribution label Nov 13, 2025
@dotnet-policy-service
Copy link
Contributor

Hey there @@SyedAbdulAzeemSF4852! Thank you so much for your PR! Someone from the team will get assigned to your PR shortly and we'll get it reviewed.

@dotnet-policy-service dotnet-policy-service bot added the partner/syncfusion Issues / PR's with Syncfusion collaboration label Nov 13, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

community ✨ Community Contribution partner/syncfusion Issues / PR's with Syncfusion collaboration

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Page's OnAppearing triggered twice with ShellItemChanged + PresentationMode Modal combo

1 participant