@OmitType(unless="react4j.store_debug_data_as_state")
public final class IntrospectUtil
extends java.lang.Object
Modifier and Type | Method and Description |
---|---|
static void |
collectDependencyDebugData(arez.Observer observer,
jsinterop.base.JsPropertyMap<java.lang.Object> data)
For the specified observer, collect all dependencies and record them in data to be emitted as debug data.
|
static java.lang.Object |
getValue(arez.spy.ObservableValueInfo observableInfo)
Return the value for specified observable.
|
static boolean |
prepareStateUpdate(jsinterop.base.JsPropertyMap<java.lang.Object> newState,
jsinterop.base.JsPropertyMap<java.lang.Object> currentState)
Prepare the newState value to be updated given specified current state.
|
@Nullable public static java.lang.Object getValue(@Nonnull arez.spy.ObservableValueInfo observableInfo)
Object.toString()
observableInfo
- the observable.public static void collectDependencyDebugData(@Nonnull arez.Observer observer, @Nonnull jsinterop.base.JsPropertyMap<java.lang.Object> data)
observer
- the observer.data
- the target in which to place debug data.public static boolean prepareStateUpdate(@Nonnull jsinterop.base.JsPropertyMap<java.lang.Object> newState, @Nullable jsinterop.base.JsPropertyMap<java.lang.Object> currentState)
newState
- the new "state" of the component.currentState
- the current "state" of the component.