Function: useAuthorReviews()
useAuthorReviews(
reviewerDid,options):UseQueryResult<{cursor:string;hasMore:boolean;reviews:object[];total:number; },Error>
Defined in: web/lib/hooks/use-review.ts:500
Fetches reviews created by a specific author.
Parameters
reviewerDid
string
DID of the author whose reviews to fetch
options
UseAuthorReviewsOptions = {}
Query options
Returns
UseQueryResult<{ cursor: string; hasMore: boolean; reviews: object[]; total: number; }, Error>
Query result with paginated reviews
Remarks
Returns all reviews (both inline annotations and general comments) created by the specified author, ordered by most recent first.
Example
const { data, isLoading } = useAuthorReviews(authorDid);
if (isLoading) return <ReviewListSkeleton />;
return (
<ReviewList
reviews={data?.reviews ?? []}
hasMore={data?.hasMore}
/>
);