Pablo
04/07/2025, 11:57 AMRouteMapPanel(
simpleMapCenterLocation = uiState.simpleMapCenterLocation,
selectedLocation = uiState.selectedLocation,
selectedLocationAddress = uiState.selectedLocationAddress,
originLocation = uiState.originLocation,
destinationLocation = uiState.destinationLocation,
hasLocationPermission = uiState.hasLocationPermission
)
vs
RouteMapPanel(uiState = uiState)
Chrimaeon
04/07/2025, 12:05 PMPablo
04/07/2025, 12:07 PMPablo
04/07/2025, 12:07 PMChrimaeon
04/07/2025, 12:08 PMPablo
04/07/2025, 12:08 PMChrimaeon
04/07/2025, 12:10 PMChrimaeon
04/07/2025, 12:10 PMChrimaeon
04/07/2025, 12:12 PM> By not having wrapper classes you’re also more likely to pass composables only the parameters they need, which is a best practice.
Chrimaeon
04/07/2025, 12:15 PMPablo
04/07/2025, 12:22 PMPablo
04/07/2025, 12:22 PM