Skip to main content

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; }