N
Novu14mo ago
ludu

Avoid subsequent initializations of notification center

Hi! We have integrated the notification center in our vue 3 project. The problem we have is that in each change of router, a new session is generated, since by architecture, we have the notification center in a component that triggers the mounted cycle event for each change of router. Is there a way to for example, save the JWT in the first initialization and reuse it in subsequent mounted avoiding subsequent initializations? Thanks.
3 Replies
Pawan Jain
Pawan Jain14mo ago
@ludu could you please share the minimal code in codesandbox so we can debug?
ludu
luduOP14mo ago
I resolved it, changing the component hierarchy and with absolute positioning of the novu bell. I was asking the question for if exists any extra ws connection configuration. Anyway, thank you for your time!
Novu_Bot
Novu_Bot14mo ago
@ludu, you just advanced to level 1!
Want results from more Discord servers?
Add your server