Function: useCollectionAddNotifications()
useCollectionAddNotifications(
options):UseQueryResult<OutputSchema,Error>
Defined in: web/lib/hooks/use-notifications.ts:250
Fetches the user's eprints that other people added to their collections.
Parameters
options
UseCollectionAddNotificationsOptions = {}
Query options
Returns
UseQueryResult<OutputSchema, Error>
Query result with collection-add notifications
Example
function CollectionAdds() {
const { data, isLoading } = useCollectionAddNotifications({ limit: 20 });
if (isLoading) return <Spinner />;
return (
<ul>
{data?.notifications.map((n) => (
<li key={n.uri}>{n.actor.did} collected {n.eprintTitle}</li>
))}
</ul>
);
}