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

interface RecentQueriesState {
    analyticsEnabled: boolean;
    maxLength: number;
    queries: string[];
}

Properties

analyticsEnabled: boolean

Whether analytics & tracking are enabled. In the case where it is disabled, it is recommended not to save recent queries.

maxLength: number

The maximum number of queries to retain in the list.

queries: string[]

The list of recent queries.