N
Novu•5mo ago
gxx

Components not refreshing after update to PRO

Hi. We have an issue that React Novu components stopped refreshing on new events and updates (new notifications counter, mark as read etc). You can see <Bell /> component or <InboxContent /> component updates only when you refresh the page. Seems like websocket updates are not working any longer? We switched from trial to PRO version around the time it stopped working 🤔 As for our components setup we use something like following: A wrapper component
export const Novu = ({ children }: PropsWithChildren) => {
return (
<Inbox
applicationIdentifier={NOVU_APP_ID}
subscriberId={userId}
localization={localization}
>
{children}
</Inbox>
);
};
export const Novu = ({ children }: PropsWithChildren) => {
return (
<Inbox
applicationIdentifier={NOVU_APP_ID}
subscriberId={userId}
localization={localization}
>
{children}
</Inbox>
);
};
And then we use Bell component and InboxContent component separately.
<aside>
{/* BELL BUTTON */}
<div>
<Novu>
<Bell renderBell={(unreadCount) => <span>{unreadCount}</span>} />
</Novu>
</div>

{/* INBOX CONTENT */}
<div>
<Novu>
<InboxContent />
</Novu>
</div>
</aside>
<aside>
{/* BELL BUTTON */}
<div>
<Novu>
<Bell renderBell={(unreadCount) => <span>{unreadCount}</span>} />
</Novu>
</div>

{/* INBOX CONTENT */}
<div>
<Novu>
<InboxContent />
</Novu>
</div>
</aside>
9 Replies
Pawan Jain
Pawan Jain•5mo ago
@gxx Could you try with this
<aside>
<Novu>
{/* BELL BUTTON */}
<div>
<Bell renderBell={(unreadCount) => <span>{unreadCount}</span>} />

</div>

{/* INBOX CONTENT */}
<div>
<InboxContent />
</div>
</Novu>
</aside>
<aside>
<Novu>
{/* BELL BUTTON */}
<div>
<Bell renderBell={(unreadCount) => <span>{unreadCount}</span>} />

</div>

{/* INBOX CONTENT */}
<div>
<InboxContent />
</div>
</Novu>
</aside>
gxx
gxxOP•5mo ago
Yes - I did try that - it didn't help unfortunatelly.
Pawan Jain
Pawan Jain•5mo ago
I just tested from my end. It works as expected Using <Novu /> multiple times create session each time. Each session is unique
gxx
gxxOP•5mo ago
So I just re-tried it but having one wrapper doesn't help here
gxx
gxxOP•5mo ago
I am getting quite a few of those 🤔
No description
Pawan Jain
Pawan Jain•5mo ago
@gxx I see there are multiple socket requests. Do you see same error with all of the requests?
gxx
gxxOP•5mo ago
Yes, seems like all of them have the same issue
gxx
gxxOP•5mo ago
Pawan Jain
Pawan Jain•5mo ago
Thanks , I am checking with VPN if it is a location issue @gxx DMing you

Did you find this page helpful?