001package react4j.internal; 002 003import javax.annotation.Nonnull; 004import jsinterop.annotations.JsPackage; 005import jsinterop.annotations.JsType; 006import jsinterop.base.JsPropertyMap; 007 008/** 009 * Native support infrastructure for getSnapshotBeforeUpdate react lifecycle. 010 */ 011@JsType( isNative = true, namespace = JsPackage.GLOBAL, name = "?" ) 012public interface OnGetSnapshotBeforeUpdate 013{ 014 Object getSnapshotBeforeUpdate( @Nonnull JsPropertyMap<Object> prevProps, @Nonnull JsPropertyMap<Object> prevState ); 015}