Skip to content

fix(map): remove manual ViewTree lifecycle owner workarounds#5704

Merged
jamesarich merged 1 commit into
mainfrom
fix/remove-maps-hacks
Jun 1, 2026
Merged

fix(map): remove manual ViewTree lifecycle owner workarounds#5704
jamesarich merged 1 commit into
mainfrom
fix/remove-maps-hacks

Conversation

@jamesarich

Copy link
Copy Markdown
Collaborator

Remove the manual propagation of ViewTreeLifecycleOwner and ViewTreeSavedStateRegistryOwner to the root view in NodeClusterMarkers and InlineMap. These workarounds were originally implemented to help internal ComposeViews in the Google Maps Compose library find required owners, but they are no longer needed and can cause regressions where subsequent UI elements inherit a destroyed lifecycle from a previous NavEntry.

Remove the manual propagation of `ViewTreeLifecycleOwner` and `ViewTreeSavedStateRegistryOwner` to the root view in `NodeClusterMarkers` and `InlineMap`. These workarounds were originally implemented to help internal `ComposeView`s in the Google Maps Compose library find required owners, but they are no longer needed and can cause regressions where subsequent UI elements inherit a destroyed lifecycle from a previous `NavEntry`.
@github-actions github-actions Bot added the bugfix PR tag label Jun 1, 2026
@jamesarich jamesarich enabled auto-merge June 1, 2026 19:31
@jamesarich jamesarich added this pull request to the merge queue Jun 1, 2026
Merged via the queue into main with commit be6f2cf Jun 1, 2026
18 checks passed
@jamesarich jamesarich deleted the fix/remove-maps-hacks branch June 1, 2026 19:42
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bugfix PR tag

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant