v79
12/18/2022, 10:19 AMval
rather than var
! Compose developers: great, now let's wrap everything in mutableStateOf
to make everything mutable again...Mini
12/18/2022, 11:51 AMChrimaeon
12/18/2022, 12:01 PMval
never declared something immutable. The only thing it does is make the reference to the object not be changeable. You could always change the properties of the object.
https://kotlinlang.org/docs/basic-syntax.html#variablesyschimke
12/18/2022, 12:07 PMCLOVIS
12/18/2022, 2:49 PMmutableStateOf
doesn't make things mutable. It allows collecting all the mutation events, and apply them all at once in a "parallel world" with a different state which is also immutable (as long as what you store is immutable, of course)Colton Idle
12/20/2022, 7:42 AM