Skip to main content

Function: useFollowerNotifications()

useFollowerNotifications(options): UseQueryResult<OutputSchema, Error>

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

Fetches the people who follow the authenticated user.

Parameters​

options​

UseFollowerNotificationsOptions = {}

Query options

Returns​

UseQueryResult<OutputSchema, Error>

Query result with follower notifications

Example​

function Followers() {
const { data, isLoading } = useFollowerNotifications({ limit: 20 });

if (isLoading) return <Spinner />;

return (
<ul>
{data?.notifications.map((n) => (
<li key={n.collectionUri}>{n.follower.did} follows you</li>
))}
</ul>
);
}