API REFERENCE
GridComponentErrorDetails
GridComponentErrorDetails의 필드와 허용 값, 이 타입을 사용하는 API입니다.
타입 정의
물음표(?)는 선택 항목이고 readonly는 직접 변경하지 않는 값입니다. 유니온(|)은 허용된 형태 중 하나를 뜻합니다. 함수는 해당 시점에 Grid가 호출할 콜백입니다.
export interface GridComponentErrorDetails {
readonly code: GridComponentErrorCode;
readonly phase: GridComponentLifecyclePhase;
readonly componentKind: GridComponentKind;
readonly componentName?: string;
readonly mountKey?: string;
readonly generation?: number;
readonly retryable: boolean;
readonly cause?: unknown;
}이 타입을 사용하는 API
- componentError
사용자 컴포넌트 초기화·호출 등에서 오류가 발생했을 때 알립니다. 오류를 무시하지 말고 대상과 단계별로 처리합니다.