Prometheus Entity Management API
    Preparing search index...
    • Suspense-compatible version of useEntity. Throws a promise while the entity is loading, allowing React Suspense boundaries to show fallback UI. Once data is available, returns the entity data directly (never null).

      Type Parameters

      • TRaw
      • TEntity extends object

      Parameters

      Returns { data: TEntity; isFetching: boolean; isStale: boolean; refetch: () => void }

      data plus isFetching, isStale, and refetch

      Promise while loading (caught by the nearest Suspense boundary)

      Error if the fetch fails with no data, if id is missing when required, or if the entity never resolves