Backstage
    Preparing search index...
    • React hook for retrieving APIs.

      Promise-valued APIs are unwrapped. The hook suspends while the promise is pending and throws its rejection reason if it fails. Render consumers of promise-valued APIs inside a Suspense boundary.

      Direct holder lookups and factory dependencies retain the declared API value.

      Type Parameters

      • T

      Parameters

      • apiRef: ApiRef<T>

        Reference of the API to use.

      Returns Awaited<T>