Klaas Kabini02/01/2020, 5:07 PM
annotation on the composable functions within the framework mean the composable functions are stable and not subject to change? Is that right ?
Adam Powell02/01/2020, 5:11 PM
appears on types rather than on functions, and usually on interfaces rather than concrete types. At a first approximation you can think of it as saying, "this object is either
for this object, composition involving it can be skipped. If an object instance itself changes, it will notify the Compose runtime as appropriate.
is always true, that last part of the contract is important so that compose doesn't skip over important changes that need to be reflected.
automatically meets this contract, and
does as well by declaring that an object won't change at all.
Klaas Kabini02/01/2020, 5:19 PM
Adam Powell02/01/2020, 5:20 PM