Skip to main content

Function: usePrefetchTags()

usePrefetchTags(): (preprintUri) => void

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

Hook for prefetching tags on hover/focus.

Returns

Function

Function to prefetch tags for a preprint

Parameters

preprintUri

string

Returns

void

Remarks

Improves perceived performance by loading tag data before the user views the tags section.