Bruno_
11/18/2019, 10:03 PM@Model
object, will it trigger rerender of a whole "tree"? I mean not only the composable that uses this object, right?Luca Nicoletti
11/20/2019, 12:18 PM@Model
observes only variables, not constants. If a property is constant, what’s the point in observing it? It will never changeAndrey Kulikov
11/20/2019, 12:19 PMmodelListOf<Foo>()
Muh Rahmatullah
11/20/2019, 12:19 PMMuh Rahmatullah
11/20/2019, 12:20 PMLuca Nicoletti
11/20/2019, 12:20 PMFoo
is also a Model
it should workLuca Nicoletti
11/20/2019, 12:20 PMFoo
changes as you saidMuh Rahmatullah
11/20/2019, 12:23 PMAndrey Kulikov
11/20/2019, 12:33 PMMuh Rahmatullah
11/20/2019, 12:36 PMLuca Nicoletti
11/20/2019, 12:43 PMOnly ifchangesFoo
Luca Nicoletti
11/20/2019, 12:44 PMthe value inside of the list could changeif it does change, the
@Composable
which refers to the specific instance of Foo
will be drawn again, right?Andrey Kulikov
11/20/2019, 12:46 PMLuca Nicoletti
11/20/2019, 12:47 PMLeland Richardson [G]
11/20/2019, 5:22 PMModelList
if you just use an immutable list pattern, and instead of using MutableList
with add
, you could use List
with plus
(list concatenation)Leland Richardson [G]
11/20/2019, 5:22 PMMuh Rahmatullah
11/21/2019, 3:41 AM