Colton Idle
06/07/2022, 7:50 PMinit {}
block. My first two thoughts were to either use a remember {}
or a LaunchedEffect. But both don't work.
Any ideas?
BottomSheetScaffold(
scaffoldState = complexBottomSheetState,
sheetContent = {
Box(Modifier.fillMaxWidth().height(200.dp)
) {
Log.e("ABC", "creating new VM?")
val newVm = hiltViewModel<ComplexBottomSheetViewModel>()
MyComplexBottomSheet(viewModel = newVm)
}
},
Stylianos Gakis
06/07/2022, 9:38 PMFrancesc
06/07/2022, 9:45 PMStylianos Gakis
06/08/2022, 5:06 AMmyanmarking
06/08/2022, 8:28 AMallan.conda
06/08/2022, 2:39 PMmyanmarking
06/09/2022, 8:48 AM