Colton Idle
11/17/2024, 12:19 AMmutableStateListOf<Todo>() and
class Todo {
val title = mutableStateOf("")
val completed = mutableStateOf(false)
}
saw it in this video, from someone that works at jetbrains. i thought two mutables nested like that aren't a good idea generally?Arsildo Murati
11/17/2024, 12:23 AMArsildo Murati
11/17/2024, 12:24 AMStylianos Gakis
11/17/2024, 12:24 AMColton Idle
11/17/2024, 4:51 AMStylianos Gakis
11/17/2024, 9:33 AMColton Idle
11/17/2024, 5:38 PMColton Idle
11/17/2024, 5:41 PMAlex Vanyo
11/17/2024, 8:40 PMColton Idle
11/18/2024, 1:16 AMcopy()
and so i like the mutableStateListOf<Item> and Item has mutableState* inside of it. makes the most sense to me. 😄