Notification Center Isn't working properly
Hi, i have some issues while using notification-center
first one is only 10 notification fetched and the value of is always false so i cant fetch the next notifications but the unread count says it has more than 100+ notifications
second one is when i trigger the function of it only read & seen the fetched notification
Notification center version: 0.19
7 Replies
Hey @jauhari. 🙂 Sorry about that. @Pawan Jain @paweltymczuk can you help us here?
Hi @jauhari.
Are you self hosting Novu?
which hook you are using to fetch in-app notifications?
yeah it is self host novu
i use that with these configuration
hello @jauhari.! 👋
If you would like to fetch more notifications, you can do this by defining
stores
property on the NovuProvider
like this: stores={[{ storeId: 'default', query: { limit: 20 }}]}
.
I have checked quickly the fetchNextPage
and hasNextPage
functionality, and it seems like they are working well for me. Same about the markAllNotificationsAsRead
.
Are you sure that Novu + Notification Center are both v0.19.0? because it seems to me that you are running older version of Novu < v0.19.0i reinstalled the library then the notification working fine and
markAllNotificationsAsRead
is also working fine, but sometimes when there is a new notification the notifications isnt sorted
but i guess i can manipulate the array firstif you use the
useUnseenCount
hook, then all the queries should be refetched automatically and notifications should be shown in the correct orderi see, i'll try that thanks @paweltymczuk