Parameters
- __namedParameters: { accessToken: null | string; rateLimitState?: RateLimitState }
Returns {
isLoading: boolean;
progress: MatchingProgress;
statusMessage: string;
detailMessage: null | string;
error: null | string;
detailedError: null | ApiError;
timeEstimate: TimeEstimate;
bypassCache: boolean;
isFreshSearch: boolean;
isCancelling: boolean;
isInitializing: boolean;
isCacheClearing: boolean;
cacheClearingCount: number;
cancelMatchingRef: RefObject<boolean>;
matchingInitialized: RefObject<boolean>;
setError: Dispatch<SetStateAction<null | string>>;
setDetailedError: Dispatch<SetStateAction<null | ApiError>>;
setIsLoading: Dispatch<SetStateAction<boolean>>;
setProgress: (
value:
| MatchingProgress
| (previous: MatchingProgress) => MatchingProgress,
) => void;
setStatusMessage: Dispatch<SetStateAction<string>>;
setDetailMessage: Dispatch<SetStateAction<null | string>>;
setBypassCache: Dispatch<SetStateAction<boolean>>;
setIsFreshSearch: Dispatch<SetStateAction<boolean>>;
setIsCancelling: Dispatch<SetStateAction<boolean>>;
setIsInitializing: Dispatch<SetStateAction<boolean>>;
setIsCacheClearing: Dispatch<SetStateAction<boolean>>;
setCacheClearingCount: Dispatch<SetStateAction<number>>;
startMatching: (
mangaList: KenmeiManga[],
forceSearch?: boolean,
setMatchResults?: Dispatch<SetStateAction<MangaMatchResult[]>>,
) => Promise<void>;
handleResumeMatching: (
matchResults: MangaMatchResult[],
setMatchResults: Dispatch<SetStateAction<MangaMatchResult[]>>,
) => Promise<void>;
handleCancelResume: () => void;
handleCancelProcess: () => void;
handlePauseMatching: () => void;
handleResumeMatchingRequests: () => void;
completeInitialization: () => void;
setManualMatchingPause: (paused: boolean) => void;
isManuallyPaused: boolean;
isPauseTransitioning: boolean;
setIsManuallyPaused: Dispatch<SetStateAction<boolean>>;
setIsPauseTransitioning: Dispatch<SetStateAction<boolean>>;
isTimeEstimatePaused: boolean;
pauseTimeTracking: () => void;
resumeTimeTracking: () => void;
isRateLimitPaused: boolean;
setTimeEstimate: Dispatch<SetStateAction<TimeEstimate>>;
}
Object containing matching state, handlers, and utility functions.
isLoading: boolean
statusMessage: string
detailMessage: null | string
error: null | string
detailedError: null | ApiError
bypassCache: boolean
isFreshSearch: boolean
isCancelling: boolean
isInitializing: boolean
isCacheClearing: boolean
cacheClearingCount: number
cancelMatchingRef: RefObject<boolean>
matchingInitialized: RefObject<boolean>
setError: Dispatch<SetStateAction<null | string>>
setDetailedError: Dispatch<SetStateAction<null | ApiError>>
setIsLoading: Dispatch<SetStateAction<boolean>>
setStatusMessage: Dispatch<SetStateAction<string>>
setDetailMessage: Dispatch<SetStateAction<null | string>>
setBypassCache: Dispatch<SetStateAction<boolean>>
setIsFreshSearch: Dispatch<SetStateAction<boolean>>
setIsCancelling: Dispatch<SetStateAction<boolean>>
setIsInitializing: Dispatch<SetStateAction<boolean>>
setIsCacheClearing: Dispatch<SetStateAction<boolean>>
setCacheClearingCount: Dispatch<SetStateAction<number>>
startMatching: (
mangaList: KenmeiManga[],
forceSearch?: boolean,
setMatchResults?: Dispatch<SetStateAction<MangaMatchResult[]>>,
) => Promise<void>
handleResumeMatching: (
matchResults: MangaMatchResult[],
setMatchResults: Dispatch<SetStateAction<MangaMatchResult[]>>,
) => Promise<void>
handleCancelResume: () => void
handleCancelProcess: () => void
handlePauseMatching: () => void
handleResumeMatchingRequests: () => void
completeInitialization: () => void
setManualMatchingPause: (paused: boolean) => void
isManuallyPaused: boolean
isPauseTransitioning: boolean
setIsManuallyPaused: Dispatch<SetStateAction<boolean>>
setIsPauseTransitioning: Dispatch<SetStateAction<boolean>>
isTimeEstimatePaused: boolean
pauseTimeTracking: () => void
resumeTimeTracking: () => void
isRateLimitPaused: boolean
setTimeEstimate: Dispatch<SetStateAction<TimeEstimate>>
Manages the manga matching process with batch operations, progress tracking, and pause/resume support.
Source