@JsFunction
@FunctionalInterface
public static interface Component.SetStateCallback
| Modifier and Type | Method and Description |
|---|---|
jsinterop.base.JsPropertyMap<java.lang.Object> |
onSetState(jsinterop.base.JsPropertyMap<java.lang.Object> previousState,
jsinterop.base.JsPropertyMap<java.lang.Object> currentProps)
Callback used to update state.
|
@Nullable
jsinterop.base.JsPropertyMap<java.lang.Object> onSetState(@Nullable
jsinterop.base.JsPropertyMap<java.lang.Object> previousState,
@Nullable
jsinterop.base.JsPropertyMap<java.lang.Object> currentProps)
previousState - the preiovus state.currentProps - the current props.