loloof64
08/01/2021, 2:50 PMMovesNavigatorElement
- which is a class I've defined - as a property of my @Composable
but it does not compile : more in threadloloof64
08/01/2021, 2:51 PMMovesNavigatorElement
loloof64
08/01/2021, 2:52 PMloloof64
08/01/2021, 2:53 PMAdam Powell
08/01/2021, 2:54 PM=
instead of by
loloof64
08/01/2021, 2:56 PMAdam Powell
08/01/2021, 2:56 PMmutableStateOf
because MutableState<T>
is essentially a collection of exactly one element and explicitly referring to its .value
property is cumbersome/noisy. Other snapshot collection types are used as usual elsewhere.loloof64
08/01/2021, 3:03 PMSnpashotMutableList
the best way to handle a mutable array of items, in order to save them as a property of Composable, like I'm trying ? Or can I do simpler ?loloof64
08/01/2021, 3:13 PM.toTypedArray()
.Adam Powell
08/01/2021, 4:13 PMloloof64
08/01/2021, 5:10 PM