https://kotlinlang.org logo
#compose
Title
# compose
g

Guy Bieber

06/18/2020, 10:53 PM
Is the movement from @Model causing a bunch of rework for others? I basically have a Component Interface that has the main @Compose view() function. At construction the components get the part of the app model state they understand injected at construction time. The app model contains the whole state for the application. Right now this is a series of classes and data classes that are @Model. I think I can a similar approach by changing all the model classes to be a ton of mutableStates (seems pretty messy). Are there any restrictions on the types that can be MutableStates? @Model had limitations for arrays, lists (ModelList), and maps (ModelMap)?
h

henrikhorbovyi

06/19/2020, 2:07 AM
Actually,
@Model
has been deprecated. It would be better to use something else instead.
g

Guy Bieber

06/19/2020, 4:21 PM
I realize that model is deprecated. I am working out the best approach to migration.
3 Views