dynamic

abstract fun dynamic(): Boolean

EXPERIMENTAL. This is a part of new experimental API. There is no guarantee that this API will work or that it will remain the same.

Marks a Prop as dynamic, so that a DynamicValue object could be passed to a Component that the Prop belongs to, which makes it possible to update the actual value of the Prop bypassing LayoutState and MountState.

Only Props that DO NOT AFFECT LAYOUT could be marked as dynamic.

Additionally, for every dynamic Prop, a ComponentSpec must contain method, that applies the actual value to the mounted content.

See also