from a composable, and it reads those state values, the composable tracks those reads and will trigger recomposition of the composable that the read happened in when they change.
👍 1
e
Erlan Amanatov
06/01/2021, 1:25 PM
I thought the
modified
function will be called only with new
object1
or
object2
parameters, not by their properties
a
Adam Powell
06/01/2021, 1:44 PM
composable functions track any snapshot state read while the composable function was executing and will invalidate if a new snapshot is committed with changes to those objects
👍 1
Adam Powell
06/01/2021, 1:44 PM
and compose UI does the same for layout and drawing