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