@Documented
@Target(value=METHOD)
public @interface OnPropChange
Each parameter is expected to be named according to the pattern "last[MyProp]", "prev[MyProp]"
or "[myProp]". If name of the parameter does not follow the pattern then the name can be explicitly
mapped via the PropRef
annotation on a parameter.
The method must also conform to the following constraints:
ReactComponent
Modifier and Type | Optional Element and Description |
---|---|
OnPropChange.Phase |
phase
The phase in which the method should be invoked.
|
public abstract OnPropChange.Phase phase