dimsuz
08/25/2022, 5:13 PMfun 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?