Optional
orderThe order by which to sort the profiles on follows, reactions, actions and mirrors
Optional
where?: InputMaybe<NotificationWhere>Fetch all notifications.
const { data, error, loading } = useNotifications();
Fetch all follow notifications from a specific app.
import { useNotifications, NotificationType, appId } from '@lens-protocol/react';
const { data, error, loading } = useNotifications({
where: {
publishedOn: [appId('any-app-id')],
notificationTypes: [NotificationType.Followed],
},
});
Fetch all quotes notifications from high-signal accounts.
import { useNotifications, NotificationType, appId } from '@lens-protocol/react';
const { data, error, loading } = useNotifications({
where: {
notificationTypes: [NotificationType.Quote],
highSignal: true,
},
});
Fetch a paginated list of notifications for the authenticated profile matching given criteria.