The RecentResultsList controller manages a user's recently clicked results.

Example: recent-results.fn.tsx

interface RecentResultsList {
    state: RecentResultsState;
    clear(): void;
    subscribe(listener: () => void): Unsubscribe;
}

Hierarchy (View Summary)

Methods

Properties

Methods

  • Clears the recent results list.

    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 RecentResultsList controller.