@Retention(value=CLASS)
public @interface OnBindDynamicValue
A method annotation used in MountSpec
classes to indicate methods that apply current
value of dynamic prop Prop
to the mounted content.
For every dynamic Prop
, ComponentSpec should provide exactly one OnBindDynamicValue
method.
Every OnBindDynamicValue
takes two parameters: 1st - mounted content object; 2nd -
current value of the dynamic Prop
, which needs to be applied to the mount content.
The method should return void.
This callback will be invoked when a Component is being bound and after that, every time when
value of dynamic Prop
changes until the Component is unbound.
Prop.dynamic()