useScopeUnread
TheuseScopeUnread hook returns a lightweight unread count for a specific notification query scope.
Parameters
Same filtering options used by
useNotifications (scope, organization IDs, workspace IDs, and more).Return Value
Unread count for the selected scope.
Whether unread count is loading.
Error from the latest request.
Revalidate unread count.
Example
Related
- useNotifications - Notification list and actions
- useNotificationStream - Realtime notification stream
