When does a composable function go into composition and when does it leave composition? I can see I can call a Composable function for it to be displayed on the screen but how do you remove it?
l
Luis
08/02/2021, 5:21 AM
An if statement checking some state will remove it
Luis
08/02/2021, 5:21 AM
Copy code
var showView by remember { mutableStateOf(true) }
if (showView) { ContentView() }