update

inline fun <V> update(value: V, crossinline block: T.(V) -> Unit)

Reactively applies value to the component, but - unlike set - skips the very first composition. Use it when the factory already initialized the component with value (e.g. a constructor argument).

Parameters

value

the declaration to apply, compared against the previous pass's as in set.

block

applies value to the component, from the first recomposition that changes it.

See also

Updater.update