Zoltan Demant
11/05/2021, 2:41 PMZoltan Demant
11/05/2021, 2:42 PMprivate var progress by mutableStateOf(0f)
private var label by mutableStateOf("")
fun update(
progress: Float,
label: String
) {
this.progress = progress
this.label = label
}
yschimke
11/05/2021, 3:57 PMeygraber
11/05/2021, 4:09 PMSnapshot.withMutableState {
// update your state here
}
Zach Klippenstein (he/him) [MOD]
11/05/2021, 4:54 PMSnapshot.sendApplyNotifications
and schedule the next composition). But yea better to just use withMutableState
to be certain.George Mount
11/05/2021, 7:50 PMZoltan Demant
11/06/2021, 10:10 AMSnapshot.withMutableSnapshot
just to ensure no regressions happen down the line!