When does a composable function go into compositio...
# compose
s
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
An if statement checking some state will remove it
Copy code
var showView by remember { mutableStateOf(true) }

if (showView) { ContentView() }