Repository navigation
Conversation
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
thetaPC
approved these changes
Dec 3, 2026
thetaPC
left a comment
Contributor
There was a problem hiding this comment.
LGTM
I also confirmed that 9.0.15 re-fires the page's useIonViewWillEnter and useIonViewDidEnter when the modal opens and the dev build doesn't, so the "I believe" in the description can become a statement.
Non-blocking: nothing covers an IonRouterOutlet inside an inline modal, which is the path the description says isn't affected. A test or a manual check before merging would close that gap.
brandyscarney
removed their request for review
December 3, 2026 14:29
thetaPC
approved these changes
Dec 3, 2026
This branch was successfully deployed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Issue number: resolves internal
What is the current behavior?
Currently, an
IonPageinside an inlineIonModal(or any other inline overlay) registers with theIonRouterOutletaround it. The overlay is moved underion-appwhen it's presented, so the outlet's check for nested pages misses it and the modal's page replaces the route's page element. After the modal is dismissed the outlet is still holding the modal's contents, which keeps them in memory as detached nodes, and navigating away no longer hides the real page.What is the new behavior?
StackContextthat hook overlays already get, so anIonPageinside them doesn't register with the outer outlet. AnIonRouterOutletinside the overlay still provides its own context, so routing inside a modal isn't affected.IonRouterOutletwith theionPageprop no longer addsion-page-invisiblewhen it isn't inside an outlet. It relied on the parent outlet's transition to remove that class, and inside an inline overlay there's no parent outlet to register with anymore, so the modal's contents stayed at opacity 0.IonPage, navigates away, and checks that the page gets hidden.IonRouterOutletinside a modal, once with a plain outlet and once with anionPageoutlet.Does this introduce a breaking change?
Other information
On the React test app's modal page, closing the modal left 36 detached nodes before this change and none after, including across repeated open/close cycles. There's no automated test for the node count because heap snapshots in Playwright would be flaky, so the first new test checks the page-hiding symptom instead, which has the same cause.
On 9.0.15, opening one of these modals on a page that was loaded directly also re-fires that page's
useIonViewWillEnteranduseIonViewDidEnter, since the outlet runs a page transition for the modal's page. That came from the bug, so it doesn't happen anymore.onWillPresentandonDidPresentare the supported way to react to a modal opening.