googlemaps / googlemaps/android-maps-compose
Replace most GoogleMap() rememberUpdatedState() usages with single State object and encapsulate Subcomposition functionality
Aperta
priority: p2
type: feature request
- Lingua principale
- Kotlin
- Stelle
- 1.3k
- Fork
- 181
- Merge medio
- 2g 23h
- PR unite (30g)
- 18
Descrizione
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.
Guida per i contributori
Apri la guida per i contributori
Valutazione
Questa issue non è ancora stata valutata.