Is it ok to do this ```fun MyComposable( value:...
# compose
d
Is it ok to do this
Copy code
fun MyComposable(
  value: Boolean,
  slot1: @Composable () -> Unit = if (value) { Content1() } else { Content2() },
  slot2: @Composable (() -> Unit)? = if (value) { Content1() } else null,
)
I recall having some state-related problems with one of those (or both), but can't recall exactly which ones. Maybe one of the slots is ok and another is not? Or both ok/not ok?