rememberMarkerState
Deprecated
Use 'rememberUpdatedMarkerState' instead - It may be confusing to think that the state is automatically updated as the position changes, so it will be changed or removed.
Replace with
val markerState = rememberSaveable(key = key, saver = MarkerState.Saver) {
MarkerState(position)
}
Content copied to clipboard
Uses rememberSaveable to retain MarkerState.position across configuration changes, for simple use cases.
Other use cases may be better served syncing MarkerState.position with a data model.
This cannot be used to preserve info window visibility across configuration changes.
This function does not automatically update the MarkerState when the input parameters change. If you need this implementation, use 'rememberUpdatedMarkerState'.