The QuerySummary headless controller offers a high-level interface for designing a common query summary UI controller.

interface QuerySummary {
    state: QuerySummaryState;
    subscribe(listener: () => void): Unsubscribe;
}

Hierarchy (View Summary)

Methods

Properties

Methods

  • 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 relevant to the CoreQuerySummary controller.