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

aryk

03/07/2020, 1:04 PM
Can I pass a class annotated with
@Model
into a Composable without having it recompose when something changes?
a

Adam Powell

03/07/2020, 2:54 PM
If you read a property of an
@Model
object in a composable, that composable will recompose if the model object changes. If you simply pass the model object to another composable without reading its properties, it will not.