261022_05_ENH: 리스트 초기화 범위 세분화 및 설문별 상태이력 초기화 추가
This commit is contained in:
@@ -61,7 +61,9 @@ export function useListJobGate({ prjctIdx, jobType, active, requestLabel, pollWh
|
||||
const status: ListJobGateStatus = !active ? 'idle'
|
||||
: isAvailabilityUnsupported(availability.error) ? 'unsupported'
|
||||
: availability.isError ? 'error'
|
||||
: !availability.data || (!pollWhileIdle && availability.isFetching && availability.data.allowed) ? 'checking'
|
||||
// 재조회 중에는 직전 결과를 유지한다. 같은 쿼리를 페이지가 주기적으로 재조회하므로 isFetching을 '확인 중'으로
|
||||
// 보면 그때마다 다이얼로그가 깜빡인다. 접수 직전에는 useSubmitListJob이 다시 확인한다.
|
||||
: !availability.data ? 'checking'
|
||||
: availability.data.allowed ? 'allowed' : 'blocked'
|
||||
|
||||
return {
|
||||
|
||||
Reference in New Issue
Block a user