Skip to main content
Version: Next

useEntity()

Home > @backstage/plugin-catalog-react > useEntity

Grab the current entity from the context, throws if the entity has not yet been loaded or is not available.

Signature:

function useEntity<TEntity extends Entity = Entity>(): {
entity: TEntity;
};

Returns:

{ entity: TEntity; }