Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

refactor: replace most GoogleMap() rememberUpdatedState() usages with single State object and encapsulate subcomposition functionality #522

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

bubenheimer
Copy link
Contributor

@bubenheimer bubenheimer commented Feb 2, 2024

Fixes #492

… single State object and encapsulate subcomposition functionality

Fixes googlemaps#492
@bubenheimer
Copy link
Contributor Author

@wangela can I get a review & merge for this PR, please? It is functionally equivalent to current code, but improves code organization/clarity and offers minor performance improvements due to fewer slots used and less work performed on Compose parameter equality testing.

This being a refactor I'd like to avoid recurring merge conflicts by merging it soon. Thanks.

@bubenheimer
Copy link
Contributor Author

Bump

@kikoso
Copy link
Collaborator

kikoso commented Apr 18, 2024

Hi @bubenheimer , thanks for the contribution. This looks good, gets the codebase a bit closer to the API design guidelines and improves overall the health of the repository.

@kikoso kikoso changed the title refactor: replace most GoogleMap() rememberUpdatedState() usages with… refactor: replace most GoogleMap() rememberUpdatedState() usages with single State object and encapsulate subcomposition functionality Apr 23, 2024
philip-segerfast added a commit to philip-segerfast/android-maps-compose that referenced this pull request May 9, 2024
…operty from MapApplier [see desc.]

- Wrap MapUpdater parameters inside a MapUpdaterState data class
- Remove MapClickListeners property from MapApplier
- Pass MapClickListeners directly to MapClickListenerUpdater
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
3 participants