Skip to main content
Version: Next

useStarredEntities()

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

Signature:

function useStarredEntities(): {
starredEntities: Set<string>;
toggleStarredEntity: (entityOrRef: Entity | CompoundEntityRef | string) => void;
isStarredEntity: (entityOrRef: Entity | CompoundEntityRef | string) => boolean;
};

Returns:

{ starredEntities: Set<string>; toggleStarredEntity: (entityOrRef: Entity | CompoundEntityRef | string) => void; isStarredEntity: (entityOrRef: Entity | CompoundEntityRef | string) => boolean; }