Function: useTagDetail()
useTagDetail(
normalizedForm,options):UseQueryResult<null| {displayForms:string[];isPromoted:boolean;normalizedForm:string;promotedTo: {type:"authority"|"facet";uri:string; };qualityScore:number;usageCount:number; },Error>
Defined in: web/lib/hooks/use-tags.ts:387
Fetches details for a specific tag.
Parameters
normalizedForm
string
Normalized form of the tag
options
UseTagsOptions = {}
Hook options
Returns
UseQueryResult<null | { displayForms: string[]; isPromoted: boolean; normalizedForm: string; promotedTo: { type: "authority" | "facet"; uri: string; }; qualityScore: number; usageCount: number; }, Error>
Query result with tag details
Remarks
Returns full tag information including quality scores, usage metrics, and promotion status.
Example
const { data: tag, isLoading } = useTagDetail('machine-learning');
if (!tag) return <TagNotFound />;
return (
<TagDetail
tag={tag}
showPromotion={userPreferences.showPromotionStatus}
/>
);