useCounts
hook is used to fetch the notification counts based on the provided filters.
You can use this hook to fetch the total count of unread, archived notifications or any other custom count based on the filters you provide.
The hook listens for changes in notification counts and will automatically refetch the counts whenever they are updated, for example, when a new notification is received.
useCounts
propsuseCounts
returnsundefined
.useCounts
hook to fetch the unread notifications count.