Bell count and count next to tab name it's not updating
Consider the following setup:
If I mark a notification as read/unread/archived, the count will not update (apparently the entire component (inbox and bell) it's re-rendered, yet, count it's not refetched? If this is intended behavior, how can i refetch the count?
8 Replies
@wasabi
Can you share the implementation of
<CustomNotificationItem notification={notification} />
?Sure,
@wasabi
You shared
CustomNotificationList
Can you please share the implementation of <CustomNotificationItem />
insteaadOh, i'm sorry. My bad. @Pawan Jain
@wasabi
If you are self hosting novu, add socket url also as Inbox props
<NovuInbox
backendUrl={NOVU_API_URL}
socketUrl="your_custom_self_host_url_for_ws_service"
/>
@wasabi ping!
Where can I see the docs on this socketUrl implementation? Should I use the same url as backendUrl? @Pawan Jain
I guess my specific question is, when self hosting novu, how to setup websocket url?
it is the base url of your ws service
default url is
Thank you, @Pawan Jain , that was my issue. Everything works now, I'm glad you helped me.
PS: the useCount post i created at https://discord.com/channels/895029566685462578/1346961569216462988, still not working, i'm willing to help on that or submit a PR.