A scoped and simplified part of the headless state that is relevant to the CaseField controller.

interface CaseFieldState {
    error: null | CaseAssistAPIErrorStatusResponse;
    loading: boolean;
    suggestions: CaseFieldSuggestion[];
    value: string;
}

Properties

error: null | CaseAssistAPIErrorStatusResponse

The error that occurred while fetching suggestions, if any.

loading: boolean

Whether suggestions are being retrieved for the field.

suggestions: CaseFieldSuggestion[]

The field suggestions.

value: string

The current field value.