@tremendous/help
    Preparing search index...

    Function withOfflineFailureReporting

    • Runs a request, reporting an offline failure both when it starts and when it fails. Notifying at start gives instant feedback when the user acts while already offline (instead of a spinner until the request times out); the failure notification covers dropping offline mid-request. The snackbar's fixed id collapses both into one notification.

      Type Parameters

      • T

      Parameters

      • method: string
      • run: () => Promise<T>

      Returns Promise<T>