All Downloads are FREE. Search and download functionalities are using the official Maven repository.

react4j.internal.OnGetSnapshotBeforeUpdate Maven / Gradle / Ivy

The newest version!
package react4j.internal;

import javax.annotation.Nonnull;
import jsinterop.annotations.JsPackage;
import jsinterop.annotations.JsType;
import jsinterop.base.JsPropertyMap;

/**
 * Native support infrastructure for getSnapshotBeforeUpdate react lifecycle.
 */
@JsType( isNative = true, namespace = JsPackage.GLOBAL, name = "?" )
public interface OnGetSnapshotBeforeUpdate
{
  Object getSnapshotBeforeUpdate( @Nonnull JsPropertyMap prevProps, @Nonnull JsPropertyMap prevState );
}