feat: EditModal에서 채번 규칙 할당 로직 병렬 처리 최적화
- allocateCode 호출 시 Promise.all을 사용하여 여러 채번 필드를 병렬로 처리하도록 개선하였습니다. - 채번 규칙 할당 실패 시 사용자에게 명확한 오류 메시지를 제공하도록 로깅을 강화하였습니다. - 코드 할당 결과를 보다 효율적으로 처리하여 성능을 향상시켰습니다.
This commit is contained in:
@@ -10,7 +10,7 @@
|
||||
*/
|
||||
|
||||
import React, { createContext, useContext, useState, useCallback, useMemo, useRef } from "react";
|
||||
import { ConditionalConfig, CascadingConfig } from "@/types/v2-components";
|
||||
import { ConditionalConfig, CascadingConfig, LayerConfig, LayerCondition } from "@/types/v2-components";
|
||||
import { ValidationRule } from "@/types/v2-core";
|
||||
import type {
|
||||
FormStatus,
|
||||
@@ -89,6 +89,12 @@ export interface V2FormContextValue {
|
||||
addRepeaterRow: (fieldName: string, row: Record<string, unknown>) => void;
|
||||
updateRepeaterRow: (fieldName: string, index: number, row: Record<string, unknown>) => void;
|
||||
deleteRepeaterRow: (fieldName: string, index: number) => void;
|
||||
|
||||
// 조건부 레이어 시스템
|
||||
layers: LayerConfig[];
|
||||
setLayers: (layers: LayerConfig[]) => void;
|
||||
evaluateLayer: (layer: LayerConfig) => boolean;
|
||||
isComponentVisible: (componentId: string) => boolean;
|
||||
}
|
||||
|
||||
// ===== Context 생성 =====
|
||||
|
||||
Reference in New Issue
Block a user