Skip to main content

Function: useReviewNotifications()

useReviewNotifications(options): UseQueryResult<OutputSchema, Error>

Defined in: web/lib/hooks/use-notifications.ts:69

Fetches review notifications on the authenticated user's papers.

Parameters

options

UseReviewNotificationsOptions = {}

Query options

Returns

UseQueryResult<OutputSchema, Error>

Query result with review notifications

Example

function ReviewNotifications() {
const { data, isLoading } = useReviewNotifications({ limit: 20 });

if (isLoading) return <Spinner />;

return (
<ul>
{data?.notifications.map((n) => (
<li key={n.uri}>{n.reviewerDisplayName} reviewed {n.eprintTitle}</li>
))}
</ul>
);
}