Hugo Miguel Coutinho Dias
val (modalState, setModalState) = remember { mutableStateOf<(@Composable () -> Unit)>({ loading() }) }
Oleksandr Karpovich [JB]
var modalState by remember { mutableStateOf<(@Composable () -> Unit)>({ loading() }) } //then later: modalState = { SomeOtherComposable() }
A modern programming language that makes developers happier.