<Mutable state not able to change value when passe...
# stackoverflow
r
Mutable state not able to change value when passed as argument I am building a screen in compose to transition my app from views to jetpack. I cannot figure-out how to pass a parameters to a composable and still allow it to be modified. I try to break down the screen into small components. here is the code: @Composable fun MyScreen(...) { var showBottomSheet by remember { mutableStateOf(false) } Scaffold( ... MyBottomSheet(showBottomSheet) ... ) } @Composable fun MyBottomSheet(showBottomSheet: Boolean) { ......