Repository navigation
refactor(transition): remove unused Android snapshot helpers - #11651
Merged
Merged
Conversation
SnapshotViewGroup was only created by ContentViewSnapshot, which was only used by loadViewInBackground. Neither loadViewInBackground nor renderToImageSource had a caller outside a commented-out block, so the bundle still carried an unused native class that the static binding generator could not place.
3 of 5 tasks
|
View your CI Pipeline Execution ↗ for commit 9943732
💡 With Ultracache enabled, Nx Cloud learns each task's file inputs in CI and uses them on later runs. Turn on Ultracache in workspace settings ↗ · Read docs ↗ ☁️ Nx Cloud last updated this comment at |
4 of 5 tasks
commit: |
NathanWalker
approved these changes
Nov 21, 2026
NathanWalker
left a comment
Contributor
There was a problem hiding this comment.
Confirmed SnapshotViewGroup, ContentViewSnapshot, renderToImageSource, and loadViewInBackground have no remaining references across the workspace, and dropping SnapshotViewGroup avoids emitting an unused static binding on Android. Nice cleanup.
farfromrefug
approved these changes
Nov 21, 2026
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.
PR Checklist
What is the current behavior?
ui/transition/page-transition.android.tsdefinesSnapshotViewGroup,ContentViewSnapshot,loadViewInBackgroundandrenderToImageSource.SnapshotViewGroupis only created byContentViewSnapshot, which is only used byloadViewInBackground. NeitherloadViewInBackgroundnorrenderToImageSourceis called anywhere except in a commented-out block.The Android static binding generator still emits a binding for
SnapshotViewGroup(without a location, since terser drops the class as unused).What is the new behavior?
Removes that chain, the commented-out block, and the imports only it used. No behaviour change.
Split out of #11636.