Skip to main content

Function: useAuthorProfile()

useAuthorProfile(did): UseQueryResult<AuthorProfile, Error>

Defined in: web/lib/hooks/use-author.ts:173

Fetches just the author's profile information (without metrics).

Parameters

did

string

The author's DID

Returns

UseQueryResult<AuthorProfile, Error>

Query result with author profile

Remarks

Uses the same endpoint but extracts only the profile portion. Useful when you don't need metrics data.

Example

const { data: profile } = useAuthorProfile('did:plc:abc123');