@coveo/headless-react
    Preparing search index...

    Interface SearchStatus

    The SearchStatus controller lets you access search status information.

    Example: search-status.fn.tsx

    interface SearchStatus {
        state: SearchStatusState;
        subscribe(listener: () => void): Unsubscribe;
    }

    Hierarchy (View Summary)

    Index

    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 of the SearchStatus controller.