CIA Compliance Manager API Documentation - v1.0.1
    Preparing search index...

    Interface UseCIAContentServiceReturn

    Return type for useCIAContentService hook

    Provides access to the CIA content service along with loading and error states for proper UI handling.

    const { ciaContentService, isLoading, error, refresh } = useCIAContentService();

    if (isLoading) return <LoadingSpinner />;
    if (error) return <ErrorMessage error={error} onRetry={refresh} />;
    if (!ciaContentService) return null;

    // Use the service
    const details = ciaContentService.getCIADetails('availability', 'High');
    interface UseCIAContentServiceReturn {
        ciaContentService: CIAContentService | null;
        error: Error | null;
        isLoading: boolean;
        refresh: () => void;
    }
    Index

    Properties

    ciaContentService: CIAContentService | null

    CIA content service instance

    Null while loading or if initialization failed. Check isLoading and error states before using.

    error: Error | null

    Error object if initialization failed

    Null if no error occurred. When present, ciaContentService will be null. Use to show error UI and provide retry option.

    isLoading: boolean

    Loading state indicator

    True during initial service initialization or when refresh() is called. Use to show loading UI.

    refresh: () => void

    Function to retry service initialization

    Call this to re-attempt service creation after an error, or to refresh the service instance.

    {error && (
    <button onClick={refresh}>
    Retry Loading
    </button>
    )}