Skip to content

Commit

Permalink
fix: properly support updating GoogleMap() contentDescription paramet…
Browse files Browse the repository at this point in the history
…er (#485)
  • Loading branch information
bubenheimer authored Jan 23, 2024
1 parent b99e05f commit 7436d57
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -115,6 +115,7 @@ public fun GoogleMap(
it.onMyLocationClick = onMyLocationClick
it.onPOIClick = onPOIClick
}
val currentContentDescription by rememberUpdatedState(contentDescription)
val currentLocationSource by rememberUpdatedState(locationSource)
val currentCameraPositionState by rememberUpdatedState(cameraPositionState)
val currentContentPadding by rememberUpdatedState(contentPadding)
Expand All @@ -128,7 +129,7 @@ public fun GoogleMap(
mapView.newComposition(parentComposition) {
MapUpdater(
mergeDescendants = mergeDescendants,
contentDescription = contentDescription,
contentDescription = currentContentDescription,
cameraPositionState = currentCameraPositionState,
clickListeners = mapClickListeners,
contentPadding = currentContentPadding,
Expand Down

0 comments on commit 7436d57

Please sign in to comment.