the great warrior
val descriptionListState = remember{ mutableStateListOf("") } LaunchedEffect(descriptionListState.toList()) { alarmViewModel.changeCreateAlarmState( createAlarmState.copy(description = descriptionListState.joinToString(" ")) ) }
robercoding
val descriptionListState = remember{ mutableStateListOf("") } LaunchedEffect(Unit) { snapshotFlow { descriptionListState }.collect { alarmViewModel.changeCreateAlarmState( createAlarmState.copy(description = it.toList().joinToString(" ")) ) } }
collect
Zun
Michael Paus
A modern programming language that makes developers happier.