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

interface QueryErrorState {
    error: null | ErrorPayload;
    hasError: boolean;
}

Properties

Properties

error: null | ErrorPayload

The current error for the last executed query, or null if none is present.

hasError: boolean

true if there is an error for the last executed query and false otherwise.