ursus05/07/2019, 9:07 PM
BMG05/09/2019, 4:25 AM
. So, here, I would just update the
data class Model(val list: List<Item>, val selectedIndex: Int)
and return the model without touching the list.
methods if there is any change in list from the model. (In the above case, it would not touch the list)
ursus05/09/2019, 6:19 AM
BMG05/09/2019, 6:54 AM
, I will diff it manually for those cases.
render(oldModel: Model, newModel: Model)
ursus05/09/2019, 7:03 AM