Xad Kile
07/02/2023, 7:29 AMClass0
        Class0.1
            Class0.1.1
            Class0.1.2
        Class0.2
            Class0.2.1
            Class0.2.2
        Class0.3
            Class0.3.1
            Class0.3.2adte
07/02/2023, 8:49 AMShould I wrap my data class in a MutableState, or wrap each of its properties in MutableState.It depends, everything that changes and need redrawing should be in MutableState. So everything that is mutable and should redraw when changed should be in a MutableState. A class instance inside MutableState can be immutable so you have to change the entire object when you make a copy, or you can put a MutableState for mutable properties.
adte
07/02/2023, 8:54 AMAlbert Chang
07/03/2023, 2:23 AMXad Kile
07/03/2023, 9:31 AM