• Fetch a paginated list of notifications for the authenticated profile matching given criteria.

    Parameters

    Returns PaginatedReadResult<Notification[]>

    Example

    Fetch all notifications.

    const { data, error, loading } = useNotifications();
    

    Example

    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],
    },
    });

    Example

    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,
    },
    });