MBegemot
05/12/2020, 12:01 PMAdam Powell
05/12/2020, 12:45 PMstate
but not the state
itself. The code above is roughly equivalent to var list = mutableListOf(...)
but compose only knows when you change the var
, not its contents.remember { modelListOf(...) }
Or use read-only or immutable lists as the value of the State
modelListOf
will give you a mutable list where compose is tracking its content changesMBegemot
05/12/2020, 1:19 PM