Skip to main content

Function: useTagDetail()

useTagDetail(normalizedForm, options): UseQueryResult<null | TagSummary, Error>

Defined in: web/lib/hooks/use-tags.ts:389

Fetches details for a specific tag.

Parameters

normalizedForm

string

Normalized form of the tag

options

UseTagsOptions = {}

Hook options

Returns

UseQueryResult<null | TagSummary, 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}
/>
);