googlemaps / googlemaps/android-maps-compose
Replace most GoogleMap() rememberUpdatedState() usages with single State object and encapsulate Subcomposition functionality
Open
priority: p2
type: feature request
- Dominant language
- Kotlin
- Stars
- 1.3k
- Forks
- 181
- Avg merge
- 2d 23h
- Merged PRs (30d)
- 18
Description
The GoogleMap() implementation uses a gazillion individual rememberUpdatedState() calls. This is unwieldy and likely contributed to #481.
Instead, a single State object encapsulating the individual state properties can be used and passed as a parameter. This pattern is in compliance with Google Compose API guidelines.
The subcomposition should be made a separate composable function to prevent accidental access to local variables and better encapsulate subcomposition functionality.
Contributor guide
Assessment
This issue has not been assessed yet.