Перейти к основному содержимому

useUnreadNotificationsCount

@mineflow/client-react


@mineflow/client-react / notifications / useUnreadNotificationsCount

Function: useUnreadNotificationsCount()

function useUnreadNotificationsCount(): UseQueryResult<{
count: number;
}>;

Defined in: client-react/src/notifications.ts:72

Число непрочитанных уведомлений получателя (BL-08) — для бейджа в UI. Сервер считает адресованные строки без receipt'а. Под ключом notifications.unreadCount (вложен в notifications.all) — инвалидация ленты/realtime обновляет и счётчик.

Returns​

UseQueryResult<{ count: number; }>

Example​

const { data } = useUnreadNotificationsCount();