I was trying to figure out whether I should go wit...
# compose
c
I was trying to figure out whether I should go with
mutableStateOf(listOf(T))
or
mutableStateListOf(T)
and so I'm going over the state codelab to try and learn. Compose codelab uses
mutableStateOf(listOf(T))
but it has a TODO for switching over to
mutableStateListOf(T)
but the switch wasn't made because of a bug that has since been fixed. If it's recommended to actually go with mutableStateListOf, can the codelab be updated as per the TODO? https://github.com/googlecodelabs/android-compose-codelabs/blob/main/StateCodelab/[…]finished/src/main/java/com/codelabs/state/todo/TodoViewModel.kt
K 1
👍 1