Repository navigation
Conversation
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
thetaPC
approved these changes
Dec 4, 2026
thetaPC
left a comment
Contributor
There was a problem hiding this comment.
LGTM, with minor suggestion
Comment on lines
+9
to
+12
| /** | ||
| * Exposes `gc()` so the tests can check that a page is | ||
| * released once it leaves the DOM. | ||
| */ |
Contributor
There was a problem hiding this comment.
- Turning on
--expose-gcat runtime doesn't addgcto the current global, only to contexts created afterward, so the comment doesn't explain whygccomes fromrunInNewContext - Without that,
runInNewContext('gc')looks like a roundaboutglobalThis.gc, and simplifying it breaks every GC assertion in the file
Suggested change
| /** | |
| * Exposes `gc()` so the tests can check that a page is | |
| * released once it leaves the DOM. | |
| */ | |
| /** | |
| * Exposes `gc()` so the tests can check that a page is | |
| * released once it leaves the DOM. Setting the flag at | |
| * runtime only adds `gc` to contexts created afterward, | |
| * so read it from a new one. | |
| */ |
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, when a page in an
IonRouterOutletunmounts, Vue Router's route record still points at it, so its DOM is kept around as detached nodes.What is the new behavior?
RouterViewdoes./message/:id) share a record, so the outlet points it at the visible page. This keeps in-component guards likebeforeRouteLeaverunning on the right page afterrouter.back()androuter.go().Does this introduce a breaking change?
Other information
On a production build of the Vue list starter, opening a message and going back left about 70 detached nodes on 9.0.15. With this change there are none after 1, 3 or 6 round trips, using either the back button or browser back.