The QueryError controller allows to retrieve information about the current error returned by the search API, if any.

Example: query-error.fn.tsx

interface QueryError {
    state: QueryErrorState;
    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 of the QueryError controller.