The RecentQueriesList controller manages the user's recent queries.

interface RecentQueriesList {
    state: RecentQueriesState;
    clear(): void;
    executeRecentQuery(index: number): void;
    subscribe(listener: () => void): Unsubscribe;
}

Hierarchy (View Summary)

Methods

  • Clears the recent queries list.

    Returns void

  • Executes the given recent query.

    Parameters

    • index: number

      The index of the recent query to execute.

    Returns void

  • Adds a callback that's invoked on state change.

    Parameters

    • listener: () => void

      A callback that's invoked on state change.

    Returns Unsubscribe

    A function to remove the listener.

Properties

The state of the RecentQueriesList controller.